mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-05 01:37:27 +08:00
[O] Mai2 set isCurrent = false for userLoginBonus on saving to enable select login bonus every time
This commit is contained in:
@@ -95,7 +95,9 @@ class UpsertUserAllHandler(
|
||||
|
||||
req.userLoginBonusList?.unique { it.bonusId }?.let { news ->
|
||||
repos.userLoginBonus.saveAll(news.mapApply {
|
||||
id = repos.userLoginBonus.findByUserAndBonusId(u, bonusId)()?.id ?: 0 }) }
|
||||
id = repos.userLoginBonus.findByUserAndBonusId(u, bonusId)()?.id ?: 0
|
||||
isCurrent = false
|
||||
}) }
|
||||
|
||||
req.userRatingList?.getOrNull(0)?.let { r ->
|
||||
repos.userUdemae.saveAndFlush(r.udemae.apply {
|
||||
|
||||
Reference in New Issue
Block a user