diff --git a/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/ChapterMutation.kt b/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/ChapterMutation.kt index adab0609..5134ff93 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/ChapterMutation.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/ChapterMutation.kt @@ -57,6 +57,10 @@ class ChapterMutation { ids: List, patch: UpdateChapterPatch, ) { + if (ids.isEmpty()) { + return + } + transaction { val chapterIdToPageCount = if (patch.lastPageRead != null) {