mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
#1462 #865 Had to refactor how we use notificaitons. So we now have more notification fields about the request
This commit is contained in:
parent
b69b322bd5
commit
b52a57b117
21 changed files with 256 additions and 112 deletions
|
@ -142,6 +142,8 @@ namespace Ombi.Core.Engine
|
|||
$"{fullMovieName} has been successfully added!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
public async Task<IEnumerable<MovieRequests>> GetRequests(int count, int position)
|
||||
{
|
||||
var allRequests = await MovieRepository.Get().Skip(position).Take(count).ToListAsync();
|
||||
|
@ -191,7 +193,7 @@ namespace Ombi.Core.Engine
|
|||
{
|
||||
await MovieRepository.Add(model);
|
||||
|
||||
if (ShouldSendNotification(RequestType.Movie))
|
||||
if (ShouldSendNotification(model))
|
||||
{
|
||||
NotificationHelper.NewRequest(model);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue