mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 22:47:27 +08:00
[F] Fix favorite saving
This commit is contained in:
@@ -69,7 +69,7 @@ class UpsertUserAllHandler(
|
|||||||
userFavoriteMusicList?.let { list ->
|
userFavoriteMusicList?.let { list ->
|
||||||
val d = rp.userGeneralData.findByUserAndPropertyKey(u, "favorite_music")()
|
val d = rp.userGeneralData.findByUserAndPropertyKey(u, "favorite_music")()
|
||||||
?: UserGeneralData().apply { user = u; propertyKey = "favorite_music" }
|
?: UserGeneralData().apply { user = u; propertyKey = "favorite_music" }
|
||||||
rp.userGeneralData.save(d.apply { propertyValue = list.joinToString(",") })
|
rp.userGeneralData.save(d.apply { propertyValue = list.joinToString(",") { it.musicId.toString() } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Playlog
|
// Playlog
|
||||||
|
|||||||
Reference in New Issue
Block a user