캐릭터 챗봇 #338
| @@ -76,5 +76,6 @@ class ChatQuotaService( | |||||||
|     fun purchase(memberId: Long, addPaid: Int) { |     fun purchase(memberId: Long, addPaid: Int) { | ||||||
|         val quota = repo.findForUpdate(memberId) ?: repo.save(ChatQuota(memberId = memberId)) |         val quota = repo.findForUpdate(memberId) ?: repo.save(ChatQuota(memberId = memberId)) | ||||||
|         quota.remainingPaid += addPaid |         quota.remainingPaid += addPaid | ||||||
|  |         quota.nextRechargeAt = null | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user