Improve webhook test to use more accurate payload

pull/3291/head
Namaneo 5 years ago
parent 1176be7f20
commit 1ac37cd9ec

@ -89,11 +89,15 @@ namespace Ombi.Notifications.Agents
protected override async Task Test(NotificationOptions model, WebhookSettings settings)
{
var message = $"This is a test from Ombi, if you can see this then we have successfully pushed a notification!";
var c = new NotificationMessageCurlys();
var testData = c.Curlys.ToDictionary(x => x.Key, x => x.Value);
testData[nameof(NotificationType)] = NotificationType.Test.ToString();
var notification = new NotificationMessage
{
Message = message,
Data = testData,
};
await Send(notification, settings);
}

Loading…
Cancel
Save