pull/470/head
tidusjar 8 years ago
parent e82fad7428
commit a01e80c600

@ -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…
Cancel
Save