pull/1614/head
tidusjar 7 years ago
parent 1a44cf596c
commit 04117329c6

@ -149,6 +149,7 @@ namespace Ombi.Core.Engine
/// <returns></returns>
public async Task<RequestEngineResult> ApproveMovie(MovieRequests request)
{
await MovieRepository.Update(request);
if (request.Approved)
{
var result = await Sender.Send(request);

@ -183,13 +183,13 @@ namespace Ombi.Core.Engine
public async Task<RequestEngineResult> ApproveChildRequest(ChildRequests request)
{
await TvRepository.UpdateChild(request);
if (request.Approved)
{
await Audit.Record(AuditType.Approved, AuditArea.TvRequest, $"Approved Request {request.Title}", Username);
// Autosend
await TvSender.SendToSonarr(request);
}
await TvRepository.UpdateChild(request);
return new RequestEngineResult
{
RequestAdded = true

Loading…
Cancel
Save