Skip to content

Commit c23ea97

Browse files
authored
hotfix: 리뷰 페이징 오류 해결 (#211)
1 parent 7d16ebb commit c23ea97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/com/somemore/review/dto/response/ReviewWithNicknameResponseDto.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public static ReviewWithNicknameResponseDto from(Review review, String volunteer
3838
.title(review.getTitle())
3939
.content(review.getContent())
4040
.imgUrl(review.getImgUrl())
41+
.createdAt(review.getCreatedAt())
42+
.updateAt(review.getUpdatedAt())
4143
.build();
4244
}
4345

src/main/java/com/somemore/review/repository/ReviewRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ private Page<Review> getReviews(ReviewSearchCondition condition, BooleanExpressi
8787

8888
JPAQuery<Long> countQuery = queryFactory
8989
.select(review.count())
90+
.from(review)
9091
.join(volunteerApply).on(review.volunteerApplyId.eq(volunteerApply.id))
9192
.join(recruitBoard).on(recruitBoard.id.eq(volunteerApply.recruitBoardId))
92-
.from(review)
9393
.where(predicate);
9494

9595
return PageableExecutionUtils.getPage(content, condition.pageable(), countQuery::fetchOne);

0 commit comments

Comments
 (0)