mirror of
https://github.com/gotson/komga.git
synced 2026-05-03 20:35:02 +02:00
parent
afe3233f8f
commit
9b650ccc46
1 changed files with 2 additions and 1 deletions
|
|
@ -170,7 +170,8 @@ class TaskHandler(
|
|||
|
||||
is Task.DeleteBook -> {
|
||||
bookRepository.findByIdOrNull(task.bookId)?.let { book ->
|
||||
bookLifecycle.deleteBookFiles(book)
|
||||
if (book.oneshot) seriesLifecycle.deleteSeriesFiles(seriesRepository.findByIdOrNull(book.seriesId)!!)
|
||||
else bookLifecycle.deleteBookFiles(book)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue