forked from Cookies_Github_mirror/AquaDX
[F] Verse: Fix list empty case
This commit is contained in:
@@ -59,7 +59,9 @@ fun ChusanController.chusanInit() {
|
||||
// musicId cannot be the same with the id in recMusicList
|
||||
val u = db.userData.findByCard_ExtId(uid)() ?: return@paged empty
|
||||
val list = (chusan.recommendedMusic[u.id] ?: ls()).filter { it != 1 }
|
||||
ls(mapOf("musicId" to 1, "recMusicList" to list.joinToString(";") { "$it,1" }))
|
||||
|
||||
if (list.isEmpty()) empty
|
||||
else ls(mapOf("musicId" to 1, "recMusicList" to list.joinToString(";") { "$it,1" }))
|
||||
}
|
||||
|
||||
"GetUserRecRating".paged("userRecRatingList") {
|
||||
|
||||
Reference in New Issue
Block a user