Fixed: Custom Script Health Issue Level

(cherry picked from commit 5938c38bc3a76d1f1e105fb54d5d7f59aa207278)
pull/2812/head
Mark McDowall 4 years ago committed by Qstick
parent 2334b30633
commit 8fe52c3f25

@ -149,7 +149,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
var environmentVariables = new StringDictionary();
environmentVariables.Add("Lidarr_EventType", "HealthIssue");
environmentVariables.Add("Lidarr_Health_Issue_Level", nameof(healthCheck.Type));
environmentVariables.Add("Lidarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type));
environmentVariables.Add("Lidarr_Health_Issue_Message", healthCheck.Message);
environmentVariables.Add("Lidarr_Health_Issue_Type", healthCheck.Source.Name);
environmentVariables.Add("Lidarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);

Loading…
Cancel
Save