Fixed: Custom Script Health Issue Level

(cherry picked from commit 5938c38bc3a76d1f1e105fb54d5d7f59aa207278)
This commit is contained in:
Mark McDowall 2021-04-12 22:15:27 -07:00 committed by Qstick
parent 2334b30633
commit 8fe52c3f25
1 changed files with 1 additions and 1 deletions

View File

@ -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);