Implemented the ability to correct a match from UI and further scans will show that new Series name.

This commit is contained in:
Joseph Milazzo 2021-03-08 09:33:35 -06:00
parent 5186508aff
commit c6e1fec9f2
11 changed files with 806 additions and 18 deletions

View file

@ -76,14 +76,12 @@ namespace API.Controllers
if (!_unitOfWork.HasChanges()) return Ok("Nothing was updated");
if (_unitOfWork.HasChanges() && await _unitOfWork.Complete())
{
_logger.LogInformation("Server Settings updated");
_taskScheduler.ScheduleTasks();
return Ok(updateSettingsDto);
}
return BadRequest("There was a critical issue. Please try again.");
if (!_unitOfWork.HasChanges() || !await _unitOfWork.Complete())
return BadRequest("There was a critical issue. Please try again.");
_logger.LogInformation("Server Settings updated");
_taskScheduler.ScheduleTasks();
return Ok(updateSettingsDto);
}
[Authorize(Policy = "RequireAdminRole")]