Merge branch 'develop' of https://github.com/tidusjar/Ombi into develop

This commit is contained in:
tidusjar 2021-12-11 22:39:22 +00:00
commit 60933e3d83
18 changed files with 648 additions and 634 deletions

View file

@ -710,7 +710,11 @@ namespace Ombi.Core.Engine
if (request.Approved)
{
await NotificationHelper.Notify(request, NotificationType.RequestApproved);
var canNotify = await RunSpecificRule(request, SpecificRules.CanSendNotification, string.Empty);
if (canNotify.Success)
{
await NotificationHelper.Notify(request, NotificationType.RequestApproved);
}
// Autosend
await TvSender.Send(request);
}
@ -957,7 +961,11 @@ namespace Ombi.Core.Engine
if (model.Approved)
{
// Autosend
await NotificationHelper.Notify(model, NotificationType.RequestApproved);
var canNotify = await RunSpecificRule(model, SpecificRules.CanSendNotification, string.Empty);
if (canNotify.Success)
{
await NotificationHelper.Notify(model, NotificationType.RequestApproved);
}
var result = await TvSender.Send(model);
if (result.Success)
{