Refactored ScanLibrary to produce page numbers on the Manga File, Format and to update existing series/volumes rather than always create new entries.
This commit is contained in:
parent
6b4617bab3
commit
59a4921ba9
12 changed files with 709 additions and 38 deletions
|
@ -151,7 +151,14 @@ namespace API.Controllers
|
|||
[HttpDelete("delete")]
|
||||
public async Task<ActionResult<bool>> DeleteLibrary(int libraryId)
|
||||
{
|
||||
return Ok(await _libraryRepository.DeleteLibrary(libraryId));
|
||||
var result = await _libraryRepository.DeleteLibrary(libraryId);
|
||||
|
||||
if (result)
|
||||
{
|
||||
// TODO: This should clear out any cache items associated with library
|
||||
}
|
||||
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
[Authorize(Policy = "RequireAdminRole")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue