Skip to content

Commit

Permalink
๐Ÿ“ Refactor: ๋Œ“๊ธ€ ์ถœ๋ ฅ ์ˆœ์„œ ๋ณ€๊ฒฝ(๊ฐ€์žฅ ์ตœ๊ทผ ์ž‘์„ฑํ•œ ๊ฒƒ์ด ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰์œผ๋กœ)
Browse files Browse the repository at this point in the history
  • Loading branch information
koojun99 committed Sep 19, 2024
1 parent dcb4cbb commit 31cd088
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public CommentResponseDTO.CommentListDto getCommentResponseList(User user, Long
Member member = memberQueryAdapter.findByUserAndTreehouse(user, treehouse);
List<Branch> branches = branchQueryAdapter.findAllByTreeHouse(treehouse);

Pageable pageable = PageRequest.of(page, 10, Sort.by(Sort.Direction.DESC, "createdAt"));
Pageable pageable = PageRequest.of(page, 10, Sort.by(Sort.Direction.ASC, "createdAt"));
// List<Comment> commentListByPostId = commentQueryAdapter.getCommentListByPostId(postId, pageable);
List<Comment> commentListByPostId = commentQueryAdapter.getParentCommentListByPostId(postId, pageable);

Expand Down

0 comments on commit 31cd088

Please sign in to comment.