Skip to content

Commit

Permalink
Fix(#80): 재난상황-커뮤니티 대댓글 정렬기준 오래된순으로 수정 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohy6630 authored Nov 19, 2023
1 parent 5d5b407 commit 3469af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public interface ConversationRepository extends JpaRepository<Conversation, Long

List<Conversation> findAllByDisasterOrderByCreatedAtDesc(Disaster disaster);

List<Conversation> findAllByParentOrderByLikeCntDesc(Conversation parent);
List<Conversation> findAllByParentOrderByCreatedAt(Conversation parent);
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public GetConversationResponse get(String email, Long conversationId) {
.orElseThrow(NotFoundConversationException::new);
Member member = memberService.findByEmail(email);
List<GetConversationResponse> childs = new ArrayList<>();
List<Conversation> childConversations = conversationRepository.findAllByParentOrderByLikeCntDesc(conversation);
List<Conversation> childConversations = conversationRepository.findAllByParentOrderByCreatedAt(conversation);
for (Conversation child : childConversations) {
childs.add(GetConversationResponse.of(
child,
Expand Down

0 comments on commit 3469af7

Please sign in to comment.