[F] Fix nextIndex -1

This commit is contained in:
Azalea 2024-12-28 01:06:00 -05:00
parent 0de4856247
commit 74aa319f41

View File

@ -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)
}
}