Skip to content

Commit

Permalink
fix: 주간/금일 스케줄 서비스로직 정렬 해제
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed Oct 10, 2024
1 parent 44d3cf1 commit 8bc763b
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ public List<ScheduleResponse> showTodaySchedule(UserInfo userInfo) {
return scheduleQueryService.showTodaySchedule(userInfo.getId())
.stream()
.map(ScheduleResponse::from)
.sorted((ScheduleResponse.getComparatorByStartTime()))
.collect(Collectors.toList());
}

public List<ScheduleResponse> getWeekSchedule(LocalDate startDate, LocalDate endDate, UserInfo userInfo) {
return scheduleQueryService.findWeeklyScheduleByUser(startDate, endDate, userInfo.getId())
.stream()
.map(ScheduleResponse::from)
.sorted(ScheduleResponse.getComparatorByStartTime())
.collect(Collectors.toList());
}
}

0 comments on commit 8bc763b

Please sign in to comment.