Skip to content

Commit

Permalink
[fix] 로그인하지 않은 유저도 최신 1건의 여행 후기 리뷰(TripRecordReview) 조회가 가능하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
meena2003 committed Jan 24, 2024
1 parent 766efd4 commit ecabc81
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public EvaluateTripRecordReviewResponseDto saveRatingScore(
}

private Member getMember(PrincipalDetails principalDetails) {
if (principalDetails == null) {
return null;
}
return memberRepository.findById(principalDetails.getMember().getId())
.orElseThrow(UserNotFoundException::new);
}
Expand Down

0 comments on commit ecabc81

Please sign in to comment.