Skip to content

Commit

Permalink
Merge pull request #257 from ASAP-as-soon-as-possible/feat/#256
Browse files Browse the repository at this point in the history
#256 [fix] 종료시각 ordinal에서 1 제거
  • Loading branch information
KWY0218 authored Jan 30, 2024
2 parents ae49048 + f1250a6 commit 40f0f1e
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 40f0f1e

Please sign in to comment.