Skip to content

Commit 31cd088

Browse files
committed
๐Ÿ“ Refactor: ๋Œ“๊ธ€ ์ถœ๋ ฅ ์ˆœ์„œ ๋ณ€๊ฒฝ(๊ฐ€์žฅ ์ตœ๊ทผ ์ž‘์„ฑํ•œ ๊ฒƒ์ด ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰์œผ๋กœ)
1 parent dcb4cbb commit 31cd088

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)