#1462 #865 Had to refactor how we use notificaitons. So we now have more notification fields about the request

This commit is contained in:
Jamie.Rees 2017-07-05 13:04:26 +01:00
parent b69b322bd5
commit b52a57b117
21 changed files with 256 additions and 112 deletions

View file

@ -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);
}