Skip to content

Commit

Permalink
fix: 북마크 여부 체크시 멤버객체 비교가 아닌 id값으로 비교
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihye committed Aug 6, 2024
1 parent a510500 commit c9bd30d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public PlaceDetailRes getPlaceDetail(Member member, Long placeId){
Place place = getPlace(placeId);

List<PlaceBookmark> placeBookmarkList = placeBookmarkRepository.findAllByPlace(place);

Boolean isMark = placeBookmarkList.stream()
.anyMatch(placeBookmark -> placeBookmark.getMember().equals(member));
.anyMatch(placeBookmark ->placeBookmark.getMember().getMemberId().equals(member.getMemberId()));


List<Long> disability = disabilityPlaceCategoryRepository.findDisabilityCategoryIds(placeId);
List<SubDisability> subDisability = disabilityPlaceCategoryRepository.findDisabilitySubCategory(placeId).stream().map(SubDisability::of).toList();
Expand Down

0 comments on commit c9bd30d

Please sign in to comment.