Fixed: HealthCheck level returns "Type" for Custom Scripts

Fixes #5803
This commit is contained in:
Qstick 2021-01-24 22:37:15 -05:00
parent e3cc4f4cb1
commit 9cc5343547
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
var environmentVariables = new StringDictionary();
environmentVariables.Add("Radarr_EventType", "HealthIssue");
environmentVariables.Add("Radarr_Health_Issue_Level", nameof(healthCheck.Type));
environmentVariables.Add("Radarr_Health_Issue_Level", Enum.GetName(healthCheck.Type));
environmentVariables.Add("Radarr_Health_Issue_Message", healthCheck.Message);
environmentVariables.Add("Radarr_Health_Issue_Type", healthCheck.Source.Name);
environmentVariables.Add("Radarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);