mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
!wip improved the API's documentation
started on the deny reason
This commit is contained in:
parent
3c1f23ea92
commit
0cc57c3c1f
34 changed files with 168 additions and 44 deletions
|
@ -403,7 +403,7 @@ namespace Ombi.Core.Engine
|
|||
};
|
||||
}
|
||||
|
||||
public async Task<RequestEngineResult> DenyChildRequest(int requestId)
|
||||
public async Task<RequestEngineResult> DenyChildRequest(int requestId, string reason)
|
||||
{
|
||||
var request = await TvRepository.GetChild().FirstOrDefaultAsync(x => x.Id == requestId);
|
||||
if (request == null)
|
||||
|
@ -414,6 +414,7 @@ namespace Ombi.Core.Engine
|
|||
};
|
||||
}
|
||||
request.Denied = true;
|
||||
request.DeniedReason = reason;
|
||||
await TvRepository.UpdateChild(request);
|
||||
NotificationHelper.Notify(request, NotificationType.RequestDeclined);
|
||||
return new RequestEngineResult
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue