Skip to content

Commit

Permalink
Merge pull request #157 from Link-MIND/test
Browse files Browse the repository at this point in the history
[Merge] 대기중인 타이머 정렬 변경사항 merge
  • Loading branch information
mmihye committed Jan 17, 2024
2 parents 11fcf19 + 043ee3a commit f1f4034
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public void changeAlarm(Long userId, Long timerId){
}

reminder.changeAlarm();
reminder.setUpdatedAtNow();
}


Expand Down Expand Up @@ -190,7 +191,7 @@ public GetTimerPageResponseDto getTimerPage(Long userId) {
.map(this::createWaitingTimerDto)
.sorted(
Comparator.comparing(WaitingTimerDto::isAlarm)
.thenComparing(WaitingTimerDto::updateAt).reversed()
.thenComparing(WaitingTimerDto::updateAt)
)
.collect(Collectors.toList());

Expand Down

0 comments on commit f1f4034

Please sign in to comment.