From bfe569934336de8d7c77cd916e5481bae1677a45 Mon Sep 17 00:00:00 2001 From: Seokmyung Ham Date: Tue, 19 Nov 2024 05:44:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=BC=EC=A0=95=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=20API=20=ED=8A=B8=EB=9E=9C=EC=9E=AD=EC=85=98=20=EA=B2=A9?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A4=80=EC=9D=84=20READ=5FCOMMITTED=20?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/kr/momo/service/schedule/ScheduleService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/kr/momo/service/schedule/ScheduleService.java b/backend/src/main/java/kr/momo/service/schedule/ScheduleService.java index 6a48474c..942e00dc 100644 --- a/backend/src/main/java/kr/momo/service/schedule/ScheduleService.java +++ b/backend/src/main/java/kr/momo/service/schedule/ScheduleService.java @@ -31,6 +31,7 @@ import kr.momo.service.schedule.recommend.ScheduleRecommenderFactory; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Transactional; @Service @@ -44,7 +45,7 @@ public class ScheduleService { private final ScheduleBatchRepository scheduleBatchRepository; private final ScheduleRecommenderFactory scheduleRecommenderFactory; - @Transactional + @Transactional(isolation = Isolation.READ_COMMITTED) public void create(String uuid, long attendeeId, ScheduleCreateRequest request) { Meeting meeting = meetingRepository.findByUuid(uuid) .orElseThrow(() -> new MomoException(MeetingErrorCode.INVALID_UUID));