fix(live): 라이브 예약 트랜잭션 경계를 보강한다

This commit is contained in:
2026-07-15 18:56:49 +09:00
parent 28dcc4e907
commit 7167e6b3de
3 changed files with 147 additions and 6 deletions

View File

@@ -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")