mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 00:06: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;
|
model.Approved = true;
|
||||||
await RequestService.AddRequestAsync(model);
|
await RequestService.AddRequestAsync(model);
|
||||||
|
|
||||||
if (ShouldSendNotification(RequestType.Movie, settings))
|
if (ShouldSendNotification(model.Type, settings))
|
||||||
{
|
{
|
||||||
var notificationModel = new NotificationModel
|
var notificationModel = new NotificationModel
|
||||||
{
|
{
|
||||||
|
@ -918,7 +918,7 @@ namespace PlexRequests.UI.Modules
|
||||||
User = Username,
|
User = Username,
|
||||||
DateTime = DateTime.Now,
|
DateTime = DateTime.Now,
|
||||||
NotificationType = NotificationType.NewRequest,
|
NotificationType = NotificationType.NewRequest,
|
||||||
RequestType = RequestType.Movie
|
RequestType = model.Type
|
||||||
};
|
};
|
||||||
await NotificationService.Publish(notificationModel);
|
await NotificationService.Publish(notificationModel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue