Skip to content

Commit

Permalink
fix: 웹용 schedule 조회 API 정렬 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Feb 19, 2024
1 parent a153efe commit 63c6168
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.Comparator;
import java.util.List;
import java.util.UUID;

Expand Down Expand Up @@ -63,6 +64,7 @@ private List<ScheduleInfoSummary> filterSchedulesByHostType(List<Schedule> sched
return schedules.stream()
.filter(schedule -> schedule.getHostType().equals(hostType))
.map(scheduleMapper::toScheduleInfoSummary)
.sorted(Comparator.comparing(ScheduleInfoSummary::getStartDateTime))
.toList();
}

Expand Down

0 comments on commit 63c6168

Please sign in to comment.