Skip to content

Commit

Permalink
fix: 회의실 예약 조회 시 예약자 이메일로 회사 조회하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
nuyh99 committed Jan 8, 2024
1 parent 9e67166 commit 7790916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/example/busan/room/RoomService.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private List<Reservation> getReservations(final LocalDate date) {

private Collector<Reservation, ?, List<ReservationResponse>> createDtoWith(final String currentMemberEmail) {
return mapping(reservation -> {
final String reservedCompany = memberRepository.findById(currentMemberEmail)
final String reservedCompany = memberRepository.findById(reservation.getReservationEmail())
.map(Member::getCompany)
.orElse(DELETED_MEMBER_COMPANY);

Expand Down

0 comments on commit 7790916

Please sign in to comment.