fix(quota): 채팅 쿼터 구매

- nextRechargeAt = null 설정
This commit is contained in:
Klaus 2025-08-26 17:06:35 +09:00
parent 37ac52116a
commit a096b16945
1 changed files with 1 additions and 0 deletions

View File

@ -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
}
}