forked from Cookies_Github_mirror/AquaDX
[F] Fix nextIndex -1
This commit is contained in:
@@ -101,7 +101,8 @@ val chusanInit: ChusanController.() -> Unit = {
|
||||
// TODO: All unlock
|
||||
db.userItem.findAllByUser_Card_ExtIdAndItemKind(uid, kind)
|
||||
} postProcess {
|
||||
it["nextIndex"] = it["nextIndex"]!!.long + (kind * 10000000000L)
|
||||
val ni = it["nextIndex"]!!.long
|
||||
if (ni != -1L) it["nextIndex"] = ni + (kind * 10000000000L)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user