Skip to content

Commit

Permalink
fix: community getById
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev committed Apr 15, 2024
1 parent 36a6355 commit 8ebed1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ class CommunityService(
}.toList()
}

fun getById(id: Long) {
fun getById(id: Long): CommunityListRes? {
val likeCnt: Long = queryLikeRepository.getCntByCommunityId(id)
queryCommunityRepository.findById(id, likeCnt)
return queryCommunityRepository.findById(id, likeCnt)
}

@Transactional(rollbackFor = [Exception::class])
Expand Down

0 comments on commit 8ebed1d

Please sign in to comment.