From 4e0265359d2beed27dd073f0306f351aded73966 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 30 Jun 2023 19:30:47 +0200 Subject: [PATCH] Normalize categories after reordering Makes sure that the ordering is correct. E.g. "default" category should always be at position 0 --- server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt index 7c10026bb..f222a2358 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Category.kt @@ -72,6 +72,7 @@ object Category { it[CategoryTable.order] = index + 1 } } + normalizeCategories() } }