mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Fixed #409
This commit is contained in:
parent
e82fad7428
commit
a01e80c600
1 changed files with 2 additions and 2 deletions
|
@ -910,7 +910,7 @@ namespace PlexRequests.UI.Modules
|
|||
model.Approved = true;
|
||||
await RequestService.AddRequestAsync(model);
|
||||
|
||||
if (ShouldSendNotification(RequestType.Movie, settings))
|
||||
if (ShouldSendNotification(model.Type, settings))
|
||||
{
|
||||
var notificationModel = new NotificationModel
|
||||
{
|
||||
|
@ -918,7 +918,7 @@ namespace PlexRequests.UI.Modules
|
|||
User = Username,
|
||||
DateTime = DateTime.Now,
|
||||
NotificationType = NotificationType.NewRequest,
|
||||
RequestType = RequestType.Movie
|
||||
RequestType = model.Type
|
||||
};
|
||||
await NotificationService.Publish(notificationModel);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue