Merge pull request #3782 from tidusjar/bug/3752-discord-notifications

Fixed #3752
This commit is contained in:
Jamie 2020-10-02 22:53:04 +01:00 committed by GitHub
commit ff17117f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,8 @@ namespace Ombi.Notifications.Agents
{
fields.Add(new DiscordField { name = "Requested By", value = alias, inline = true });
}
} else
}
else
{
if (model.Data.TryGetValue("RequestedUser", out var requestedUser))
{
@ -131,7 +132,7 @@ namespace Ombi.Notifications.Agents
}
}
var color = string.Empty;
string color = null;
if (model.Data.TryGetValue("RequestStatus", out var status))
{
if (status.HasValue())