Skip to content

Commit

Permalink
fix: CI/CD 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
sejineer committed Dec 1, 2023
1 parent 59d8a28 commit c09fa73
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ public List<ReservationIdUserRes> getReservationByDateUser(UserPrincipal userPri
public List<ReservationIdOwnerRes> getReservationByDateOwner(UserPrincipal userPrincipal, Long giftId,
LocalDate date) {
ExperienceGift experienceGift = experienceGiftRepository.findById(giftId)
.orElseThrow(ExperienceGiftNotFoundException::new);
.orElseThrow(ExperienceGiftNotFoundException::new);

List<Reservation> reservations = reservationRepository.findAllByExperienceGiftAndDate(
experienceGift, date)
.orElseThrow(InvalidReservationException::new);
experienceGift, date)
.orElseThrow(InvalidReservationException::new);

return reservations.stream()
.map(ReservationIdOwnerRes::toDtoOwner)
.map(ReservationIdOwnerRes::toDtoOwner)
.toList();
}

@Transactional
public List<ReservationResponse> addOwnerReservation(ReservationRequest reservationRequest,
Expand Down

0 comments on commit c09fa73

Please sign in to comment.