forked from Cookies_Github_mirror/AquaDX
[F] Fix favorite saving
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user