Skip to content

Commit

Permalink
fix: 일정 생성 API 트랜잭션 격리 수준을 READ_COMMITTED 로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seokmyungham committed Nov 18, 2024
1 parent f41b097 commit bfe5699
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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));
Expand Down

0 comments on commit bfe5699

Please sign in to comment.