커뮤니티 게시물 댓글 정렬 - 등록 내림차순으로 수정

This commit is contained in:
Klaus 2023-12-20 03:18:19 +09:00
parent e090a2fe7a
commit 7204233663
2 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,6 @@ class CreatorCommunityService(
)
val totalCount = commentRepository.totalCountCommentByPostId(postId = postId)
return GetCommunityPostCommentListResponse(totalCount = totalCount, items = commentList)
}
}

View File

@ -41,6 +41,7 @@ class CreatorCommunityCommentQueryRepositoryImpl(
)
.offset(offset)
.limit(limit)
.orderBy(creatorCommunityComment.createdAt.desc())
.fetch()
.asSequence()
.map {