불필요한 !! 제거

This commit is contained in:
Klaus 2024-05-30 02:25:13 +09:00
parent 78d13aee1a
commit 0c0c4019aa
1 changed files with 3 additions and 3 deletions

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
}