mirror of
https://github.com/gotson/komga.git
synced 2025-01-07 03:07:16 +08:00
parent
afe3233f8f
commit
9b650ccc46
@ -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 New Issue
Block a user