Fixed #1583 you can now delete users.

Fixed the issue where the requested by was not showing.
Finally fixed the broken poster paths
This commit is contained in:
tidusjar 2017-10-20 22:07:30 +01:00
parent c3b2ef2f31
commit 1dc8eac035
27 changed files with 157 additions and 155 deletions

View file

@ -242,6 +242,11 @@ namespace Ombi.Core.Engine
await TvRepository.Delete(request);
}
public async Task<bool> UserHasRequest(string userId)
{
return await TvRepository.GetChild().AnyAsync(x => x.RequestedUserId == userId);
}
private async Task<RequestEngineResult> AddExistingRequest(ChildRequests newRequest, TvRequests existingRequest)
{
// Add the child