mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-21 15:16:33 -04:00
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:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user