fix(live): 라이브 예약 트랜잭션 경계를 보강한다
This commit is contained in:
@@ -29,6 +29,7 @@ class LiveReservationService(
|
||||
@Value("\${cloud.aws.cloud-front.host}")
|
||||
private val cloudFrontHost: String
|
||||
) {
|
||||
@Transactional
|
||||
fun makeReservation(request: MakeLiveReservationRequest, memberId: Long): MakeLiveReservationResponse {
|
||||
val room = liveRoomRepository.findByIdOrNull(id = request.roomId)
|
||||
?: throw SodaException(messageKey = "live.reservation.invalid_request_retry")
|
||||
|
||||
Reference in New Issue
Block a user