Skip to content

Commit

Permalink
Merge pull request #132 from Team-Shaka/refactor/130
Browse files Browse the repository at this point in the history
📝 Refactor: 댓글 출력 순서 변경(가장 최근 작성한 것이 가장 마지막으로)
  • Loading branch information
koojun99 authored Sep 19, 2024
2 parents 4ffa5c3 + 31cd088 commit 0d537cd
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 0d537cd

Please sign in to comment.