Fix broken health check level so it is not always "Type" for Notifiarr connect (#202)

pull/211/head
nitsua 4 years ago committed by GitHub
parent 9675171aff
commit 449e60afc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ namespace NzbDrone.Core.Notifications.Notifiarr
var variables = new StringDictionary();
variables.Add("Prowlarr_EventType", "HealthIssue");
variables.Add("Prowlarr_Health_Issue_Level", nameof(healthCheck.Type));
variables.Add("Prowlarr_Health_Issue_Level", healthCheck.Type.ToString() ?? string.Empty);
variables.Add("Prowlarr_Health_Issue_Message", healthCheck.Message);
variables.Add("Prowlarr_Health_Issue_Type", healthCheck.Source.Name);
variables.Add("Prowlarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);

Loading…
Cancel
Save