forked from Cookies_Public/AquaDX
[F] Fix favorite saving
This commit is contained in:
parent
a77a74ba61
commit
a731687607
@ -69,7 +69,7 @@ class UpsertUserAllHandler(
|
||||
userFavoriteMusicList?.let { list ->
|
||||
val d = rp.userGeneralData.findByUserAndPropertyKey(u, "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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user