Skip to content

Commit 0d537cd

Browse files
authored
Merge pull request #132 from Team-Shaka/refactor/130
📝 Refactor: 댓글 출력 순서 변경(가장 최근 작성한 것이 가장 마지막으로)
2 parents 4ffa5c3 + 31cd088 commit 0d537cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/treehouse/server/api/comment/business/CommentService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public CommentResponseDTO.CommentListDto getCommentResponseList(User user, Long
9797
Member member = memberQueryAdapter.findByUserAndTreehouse(user, treehouse);
9898
List<Branch> branches = branchQueryAdapter.findAllByTreeHouse(treehouse);
9999

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

0 commit comments

Comments
 (0)