Skip to content

Commit

Permalink
Merge pull request #940 from woowacourse-teams/dev
Browse files Browse the repository at this point in the history
hotfix: v2.1.0
  • Loading branch information
xrabcde authored Mar 12, 2023
2 parents 7a00389 + 4e20e81 commit e4e5fc6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ public SpaceFindAllAvailabilityResponse findAllSpaceAvailability(
List<Space> allSpaces = map.getSpaces();

Set<Long> spaceIds = allSpaces.stream().map(Space::getId).collect(Collectors.toSet());
ReservationTime reservationTime = ReservationTime.ofDefaultServiceZone(startDateTime, endDateTime);
ReservationTime reservationTime = ReservationTime.of(
startDateTime,
endDateTime,
map.getServiceZone(),
false);
List<Reservation> allReservations = reservations.findAllBySpaceIdInAndReservationTimeDate(spaceIds, reservationTime.getDate());

Set<Space> unavailableSpaces = allReservations.stream()
Expand Down

0 comments on commit e4e5fc6

Please sign in to comment.