fix(coupon): 캔 쿠폰 사용 트랜잭션을 보강한다
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user