test #188

Merged
klaus merged 7 commits from test into main 2024-06-03 22:13:56 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 0c0c4019aa - Show all commits

View File

@ -404,10 +404,10 @@ class CreatorCommunityService(
}
.map {
val isLike =
likeRepository.findByPostIdAndMemberId(postId = it.id!!, memberId = memberId)?.isActive ?: false
val likeCount = likeRepository.totalCountCommunityPostLikeByPostId(it.id!!)
likeRepository.findByPostIdAndMemberId(postId = it.id, memberId = memberId)?.isActive ?: false
val likeCount = likeRepository.totalCountCommunityPostLikeByPostId(it.id)
val commentCount = if (it.isCommentAvailable) {
commentRepository.totalCountCommentByPostId(postId = it.id!!)
commentRepository.totalCountCommentByPostId(postId = it.id)
} else {
0
}