Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellahhn committed May 1, 2024
2 parents 8e97a66 + 9dd44a7 commit a227f17
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public List<ReservationGeneralResponse> searchReservations(String ownerId,

for (Reservation reservation : reservations) {
Restaurant restaurant = findAndValidateRestaurant(reservation);
getRestaurantValidator.validateRestaurantOwnership(ownerId, restaurant.getOwnerId());
if (matchesSearchCriteria(reservation, customerName, date)) {
searchedReservations.add(reservationGeneralResponseAssembler
.toDTO(reservation, restaurant));
Expand Down

0 comments on commit a227f17

Please sign in to comment.