mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix: cannot delete read list with custom cover
This commit is contained in:
parent
ad82d99dbe
commit
b73b8690a4
1 changed files with 1 additions and 1 deletions
|
|
@ -70,8 +70,8 @@ class ReadListLifecycle(
|
||||||
logger.info { "Deleting empty read lists" }
|
logger.info { "Deleting empty read lists" }
|
||||||
transactionTemplate.executeWithoutResult {
|
transactionTemplate.executeWithoutResult {
|
||||||
val toDelete = readListRepository.findAllEmpty()
|
val toDelete = readListRepository.findAllEmpty()
|
||||||
readListRepository.delete(toDelete.map { it.id })
|
|
||||||
thumbnailReadListRepository.deleteByReadListIds(toDelete.map { it.id })
|
thumbnailReadListRepository.deleteByReadListIds(toDelete.map { it.id })
|
||||||
|
readListRepository.delete(toDelete.map { it.id })
|
||||||
|
|
||||||
toDelete.forEach { eventPublisher.publishEvent(DomainEvent.ReadListDeleted(it)) }
|
toDelete.forEach { eventPublisher.publishEvent(DomainEvent.ReadListDeleted(it)) }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue