Do not notify user upon auto approval of a TV show

Fixes #4431
This commit is contained in:
Florian Dupret 2021-12-08 11:33:04 +01:00
commit 71b2107eec

View file

@ -709,8 +709,12 @@ namespace Ombi.Core.Engine
await _mediaCacheService.Purge();
if (request.Approved)
{
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
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)
{