fix(coupon): 캔 쿠폰 사용 트랜잭션을 보강한다

This commit is contained in:
2026-07-12 21:16:34 +09:00
parent 27c66db47a
commit cd3fc00809
3 changed files with 127 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ class CanCouponService(
}
}
@Transactional
fun useCanCoupon(couponNumber: String, memberId: Long): String {
val member = memberRepository.findByIdOrNull(id = memberId)
?: throw SodaException(messageKey = "common.error.bad_credentials")