Skip to content

Commit

Permalink
feat: @transactional 추가 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeonghee-Han committed Oct 2, 2024
1 parent 0242794 commit 0d3d978
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public TimetableService(UserRepository userRepository, TimetableRepository timet
this.calendarRepository = calendarRepository;
this.repeatTodoRepository = repeatTodoRepository;
}

@Transactional
// 시간표 일정 생성 로직
public TimetableResponseDto createTimetable(User user, TimetableRequestDto timetableRequestDto){
// 유효성 검사 메서드를 호출하여 해당 ID가 데이터베이스에 존재하는지 확인
Expand Down Expand Up @@ -211,7 +211,7 @@ public List<TimetableResponseDto> getWeeklyTimetable(User userId) {
// checkAndLoadDailyData(user, today);
// }
// }

@Transactional
// 주간 시간표의 일정을 기반으로 한 일일 시간표 생성 메서드
public Map<String, Object> checkAndLoadDailyData(User user, LocalDate date) {
java.time.DayOfWeek dayOfWeek = date.getDayOfWeek();
Expand Down Expand Up @@ -261,7 +261,7 @@ public Map<String, Object> checkAndLoadDailyData(User user, LocalDate date) {
result.put("data",data);
return result;
}

@Transactional
// comment 생성 로직
public CommentResponseDto createComment(User user, CommentRequestDto commentRequestDto){
validateUserId(user);
Expand Down

0 comments on commit 0d3d978

Please sign in to comment.