mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-23 06:25:24 -07:00
parent
8943a978bf
commit
71b2107eec
1 changed files with 10 additions and 2 deletions
|
@ -710,7 +710,11 @@ namespace Ombi.Core.Engine
|
||||||
|
|
||||||
if (request.Approved)
|
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
|
// Autosend
|
||||||
await TvSender.Send(request);
|
await TvSender.Send(request);
|
||||||
}
|
}
|
||||||
|
@ -957,7 +961,11 @@ namespace Ombi.Core.Engine
|
||||||
if (model.Approved)
|
if (model.Approved)
|
||||||
{
|
{
|
||||||
// Autosend
|
// 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);
|
var result = await TvSender.Send(model);
|
||||||
if (result.Success)
|
if (result.Success)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue