mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
Fixed some issues around the tv requests area
Added mattermost and telegram notifications #1459 #865 #1457
This commit is contained in:
parent
03e9852330
commit
bf043fc76e
48 changed files with 1164 additions and 192 deletions
|
@ -141,12 +141,9 @@ namespace Ombi.Core.Engine
|
|||
public async Task<ChildRequests> UpdateChildRequest(ChildRequests request)
|
||||
{
|
||||
await Audit.Record(AuditType.Updated, AuditArea.TvRequest, $"Updated Request {request.Title}", Username);
|
||||
var allRequests = TvRepository.GetChild();
|
||||
var results = await allRequests.FirstOrDefaultAsync(x => x.Id == request.Id);
|
||||
|
||||
// TODO need to check if we need to approve any child requests since they may have updated
|
||||
await TvRepository.UpdateChild(results);
|
||||
return results;
|
||||
|
||||
await TvRepository.UpdateChild(request);
|
||||
return request;
|
||||
}
|
||||
|
||||
public async Task RemoveTvChild(int requestId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue