mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-11 23:04:33 -05:00
@@ -84,7 +84,7 @@ object Category {
|
||||
}
|
||||
|
||||
/** make sure category order numbers starts from 1 and is consecutive */
|
||||
private fun normalizeCategories() {
|
||||
fun normalizeCategories() {
|
||||
transaction {
|
||||
CategoryTable.selectAll()
|
||||
.orderBy(CategoryTable.order to SortOrder.ASC)
|
||||
|
||||
@@ -9,6 +9,6 @@ package suwayomi.tachidesk.manga.impl.util.lang
|
||||
|
||||
import org.jetbrains.exposed.sql.Query
|
||||
|
||||
fun Query.isEmpty() = this.count() == 0L
|
||||
fun Query.isEmpty() = this.empty()
|
||||
|
||||
fun Query.isNotEmpty() = !this.isEmpty()
|
||||
|
||||
Reference in New Issue
Block a user