fix(notifications): 🐛 Fixed the DenyReason sometimes not appearing in the notification message #4409

This commit is contained in:
tidusjar 2021-12-11 22:21:53 +00:00
parent 519b6a7a1a
commit 209e31175c

View file

@ -527,11 +527,12 @@ namespace Ombi.Core.Engine
request.Denied = true;
request.DeniedReason = denyReason;
// We are denying a request
await NotificationHelper.Notify(request, NotificationType.RequestDeclined);
await MovieRepository.Update(request);
await _mediaCacheService.Purge();
// We are denying a request
await NotificationHelper.Notify(request, NotificationType.RequestDeclined);
return new RequestEngineResult
{
Result = true,