Skip to content

Commit

Permalink
Merge pull request #208 from Link-MIND/test
Browse files Browse the repository at this point in the history
[Merge] 요일 정렬 merge
  • Loading branch information
sss4920 authored Jan 19, 2024
2 parents 674b6d0 + 401bfb0 commit edcf0e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public void createTimer(Long userId, CreateTimerRequestDto createTimerRequestDto
throw new CustomException(Error.UNPROCESSABLE_CREATE_TIMER_EXCEPTION, Error.UNPROCESSABLE_CREATE_TIMER_EXCEPTION.getMessage());
}

createTimerRequestDto.remindDates().sort(Comparator.naturalOrder());

Reminder reminder = Reminder.builder()
.user(presentUser)
.category(category)
Expand Down Expand Up @@ -107,6 +109,7 @@ public void updateTimerDatetime(Long userId, Long timerId, UpdateTimerDateTimeDt
if (!presentUser.equals(reminder.getUser())){
throw new CustomException(Error.INVALID_USER_ACCESS, Error.INVALID_USER_ACCESS.getMessage());
}
updateTimerDateTimeDto.remindDates().sort(Comparator.naturalOrder());
reminder.updateRemindDates(updateTimerDateTimeDto.remindDates());
reminder.updateRemindTime(updateTimerDateTimeDto.remindTime());

Expand Down

0 comments on commit edcf0e8

Please sign in to comment.