Skip to content

Commit

Permalink
fix: post 페이징 조회시 인덱스 내림차순 적용 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Jan 18, 2024
1 parent abb4f11 commit bbb9abe
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private List<PostResponse> getSearchPageContent(final PostSearchCondition condit
.fetchJoin()
.limit(pageable.getPageSize())
.offset(pageable.getOffset())
.orderBy(post.id.desc())
.fetch();

List<PostResponse> postResponseList = toPostResponses(posts);
Expand Down

0 comments on commit bbb9abe

Please sign in to comment.