[F] Fix list

pull/108/head
Azalea 2025-01-11 21:26:39 -05:00
parent 111304481f
commit d7db45d700
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import java.util.*
fun Maimai2ServletController.initApis() {
// Used because maimai does not actually require paging implementation
fun String.unpaged(key: String? = null, fn: PagedHandler) {
val k = key ?: (this.replace("get", "").firstCharLower() + "List")
val k = key ?: (this.replace("Get", "").firstCharLower() + "List")
this {
fn(this).let { mapOf("userId" to uid, "nextIndex" to 0, "length" to it.size, k to it) }
}