parent
37ac52116a
commit
a096b16945
|
@ -76,5 +76,6 @@ class ChatQuotaService(
|
|||
fun purchase(memberId: Long, addPaid: Int) {
|
||||
val quota = repo.findForUpdate(memberId) ?: repo.save(ChatQuota(memberId = memberId))
|
||||
quota.remainingPaid += addPaid
|
||||
quota.nextRechargeAt = null
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue