Skip to content

Commit

Permalink
[Refactor] : 내가 쓴 게시글 조회 시 마감된 게시글 후 순위 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
elyudwo committed Jan 28, 2024
1 parent 5b6b579 commit af1d39e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public List<PostDataByUserId> findByPostedUserId(final Long userId, final Pageab
)
.from(post)
.where(post.postedUserId.eq(userId))
.orderBy(post.createdDate.desc())
.orderBy(post.close.asc(), post.createdDate.desc())
.offset(pageable.getOffset())
.limit(pageable.getPageSize() + 1);

Expand Down

0 comments on commit af1d39e

Please sign in to comment.