mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 00:32:57 -07:00
fix notification tests
This commit is contained in:
parent
eddce77ff5
commit
a2cbcaa4f1
1 changed files with 8 additions and 2 deletions
|
@ -67,8 +67,14 @@ namespace PlexRequests.Services.Notification
|
||||||
|
|
||||||
private static async Task NotifyAsync(INotification notification, NotificationModel model)
|
private static async Task NotifyAsync(INotification notification, NotificationModel model)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
await NotifyAsync(notification, model, null);
|
{
|
||||||
|
await notification.NotifyAsync(model).ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex, $"Notification '{notification.NotificationName}' failed with exception");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue