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
|
@ -305,7 +305,7 @@ namespace Ombi.Core.Engine
|
|||
return await ApproveMovie(request);
|
||||
}
|
||||
|
||||
public async Task<RequestEngineResult> DenyMovieById(int modelId)
|
||||
public async Task<RequestEngineResult> DenyMovieById(int modelId, string denyReason)
|
||||
{
|
||||
var request = await MovieRepository.Find(modelId);
|
||||
if (request == null)
|
||||
|
@ -317,6 +317,7 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
|
||||
request.Denied = true;
|
||||
request.DeniedReason = denyReason;
|
||||
// We are denying a request
|
||||
NotificationHelper.Notify(request, NotificationType.RequestDeclined);
|
||||
await MovieRepository.Update(request);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue