From b73b8690a42a7e6e6919c5f0e56c1c02959d15c1 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 10 Jun 2022 21:33:25 +0800 Subject: [PATCH] fix: cannot delete read list with custom cover --- .../kotlin/org/gotson/komga/domain/service/ReadListLifecycle.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 df100815..39b446a6 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)) } }