diff --git a/komga/src/main/kotlin/org/gotson/komga/domain/service/ReadListLifecycle.kt b/komga/src/main/kotlin/org/gotson/komga/domain/service/ReadListLifecycle.kt index df100815b..39b446a6f 100644 --- a/komga/src/main/kotlin/org/gotson/komga/domain/service/ReadListLifecycle.kt +++ b/komga/src/main/kotlin/org/gotson/komga/domain/service/ReadListLifecycle.kt @@ -70,8 +70,8 @@ class ReadListLifecycle( logger.info { "Deleting empty read lists" } transactionTemplate.executeWithoutResult { val toDelete = readListRepository.findAllEmpty() - readListRepository.delete(toDelete.map { it.id }) thumbnailReadListRepository.deleteByReadListIds(toDelete.map { it.id }) + readListRepository.delete(toDelete.map { it.id }) toDelete.forEach { eventPublisher.publishEvent(DomainEvent.ReadListDeleted(it)) } }