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 { .map {
val isLike = val isLike =
likeRepository.findByPostIdAndMemberId(postId = it.id!!, memberId = memberId)?.isActive ?: false likeRepository.findByPostIdAndMemberId(postId = it.id, memberId = memberId)?.isActive ?: false
val likeCount = likeRepository.totalCountCommunityPostLikeByPostId(it.id!!) val likeCount = likeRepository.totalCountCommunityPostLikeByPostId(it.id)
val commentCount = if (it.isCommentAvailable) { val commentCount = if (it.isCommentAvailable) {
commentRepository.totalCountCommentByPostId(postId = it.id!!) commentRepository.totalCountCommentByPostId(postId = it.id)
} else { } else {
0 0
} }