[F] Fix maimai2 user item

pull/29/head
Azalea 2024-03-26 20:22:38 -04:00
parent d2cf16d046
commit d533df52de
1 changed files with 8 additions and 3 deletions

View File

@ -70,9 +70,14 @@ class GetUserItemHandler(
)
}
return repos.userItem.findByUserCardExtIdAndItemKind(userId, kind).apply {
forEach { it.isValid = true }
logger.info("Response: $size $kindType items - DB") }
return mapOf(
"userId" to userId,
"nextIndex" to 0,
"itemKind" to kind,
"userItemList" to repos.userItem.findByUserCardExtIdAndItemKind(userId, kind).apply {
forEach { it.isValid = true }
logger.info("Response: $size $kindType items - DB") }
)
}
companion object {