Skip to content

Commit

Permalink
#256 [fix] 종료시각 ordinal에서 1 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
KWY0218 committed Jan 30, 2024
1 parent ae49048 commit f1250a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/asap/server/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public List<BestMeetingTimeWithUsersVo> getBestMeetingInUsers(List<BestMeetingTi

private BestMeetingTimeWithUsersVo getBestMeetingTimeInUsers(final BestMeetingTimeVo bestMeetingTime) {
if (bestMeetingTime == null) return null;
List<TimeSlot> timeSlots = TimeSlot.getTimeSlots(bestMeetingTime.startTime().ordinal(), bestMeetingTime.endTime().ordinal());
List<TimeSlot> timeSlots = TimeSlot.getTimeSlots(bestMeetingTime.startTime().ordinal(), bestMeetingTime.endTime().ordinal() - 1);
List<UserVo> users = userRepository.findByAvailableDateAndTimeSlots(bestMeetingTime.availableDateId(), timeSlots);
return BestMeetingTimeWithUsersVo.of(bestMeetingTime, users);
}
Expand Down

0 comments on commit f1250a6

Please sign in to comment.