forked from Cookies_Public/AquaDX
[F] Fix nextIndex -1
This commit is contained in:
parent
0de4856247
commit
74aa319f41
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user