From c9bd30d5f1542a51463040a658d82569b5d53ef3 Mon Sep 17 00:00:00 2001 From: mmihye Date: Tue, 6 Aug 2024 11:10:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B6=81=EB=A7=88=ED=81=AC=20=EC=97=AC?= =?UTF-8?q?=EB=B6=80=20=EC=B2=B4=ED=81=AC=EC=8B=9C=20=EB=A9=A4=EB=B2=84?= =?UTF-8?q?=EA=B0=9D=EC=B2=B4=20=EB=B9=84=EA=B5=90=EA=B0=80=20=EC=95=84?= =?UTF-8?q?=EB=8B=8C=20id=EA=B0=92=EC=9C=BC=EB=A1=9C=20=EB=B9=84=EA=B5=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Journey/Together/domain/place/service/PlaceService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/Journey/Together/domain/place/service/PlaceService.java b/src/main/java/Journey/Together/domain/place/service/PlaceService.java index 0f31936..545e82d 100644 --- a/src/main/java/Journey/Together/domain/place/service/PlaceService.java +++ b/src/main/java/Journey/Together/domain/place/service/PlaceService.java @@ -72,8 +72,10 @@ public PlaceDetailRes getPlaceDetail(Member member, Long placeId){ Place place = getPlace(placeId); List placeBookmarkList = placeBookmarkRepository.findAllByPlace(place); + Boolean isMark = placeBookmarkList.stream() - .anyMatch(placeBookmark -> placeBookmark.getMember().equals(member)); + .anyMatch(placeBookmark ->placeBookmark.getMember().getMemberId().equals(member.getMemberId())); + List disability = disabilityPlaceCategoryRepository.findDisabilityCategoryIds(placeId); List subDisability = disabilityPlaceCategoryRepository.findDisabilitySubCategory(placeId).stream().map(SubDisability::of).toList();