Skip to content

Commit

Permalink
#16 [Fix] 최근 리뷰 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 18, 2022
1 parent f68e31a commit 51e80ed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public List<Review> findRecentReviews(BigDecimal lat,
// 위도 경도에 해당하는 가게를 찾음 -> 해당 댓글을 다 가져옴 -> 내림차순 정렬 -> limit
// TODO 쿼리문 개선하기
return queryFactory.selectFrom(review)
.join(review.storeId, store)
.where(builder)
.orderBy(review.createdAt.desc())
.limit(limit)
Expand Down

0 comments on commit 51e80ed

Please sign in to comment.