mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Improve webhook test to use more accurate payload
This commit is contained in:
parent
1176be7f20
commit
1ac37cd9ec
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue