Update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0 (#1786)

* Update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0

* Format

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Syer10 <syer10@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-12-06 12:37:19 -05:00
committed by GitHub
parent 949829ae6b
commit 83c94c044d
37 changed files with 524 additions and 143 deletions

View File

@@ -513,25 +513,33 @@ object Chapter {
// Make sure some filter is defined
val condition =
when {
mangaId != null ->
mangaId != null -> {
// mangaId is not null, scope query under manga
when {
input.chapterIds != null ->
input.chapterIds != null -> {
Op.build { (ChapterTable.manga eq mangaId) and (ChapterTable.id inList input.chapterIds) }
}
input.chapterIndexes != null ->
input.chapterIndexes != null -> {
Op.build { (ChapterTable.manga eq mangaId) and (ChapterTable.sourceOrder inList input.chapterIndexes) }
}
else -> null
else -> {
null
}
}
}
else -> {
// mangaId is null, only chapterIndexes is valid for this case
when {
input.chapterIds != null ->
input.chapterIds != null -> {
Op.build { (ChapterTable.id inList input.chapterIds) }
}
else -> null
else -> {
null
}
}
}
} ?: return