Skip to content

Commit

Permalink
⚡️: fix 코드리뷰 반영(!! to ?) #38
Browse files Browse the repository at this point in the history
  • Loading branch information
sookyungg committed Apr 14, 2024
1 parent 50565d2 commit 39950ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class AnswerRepositoryImpl(private val queryFactory: JPAQueryFactory) : AnswerRe
.fetch()
}

override fun findPublicAnswersCountByQuestionId(questionId: Long): Long {
override fun findPublicAnswersCountByQuestionId(questionId: Long): Long? {
return queryFactory
.select(answer._id.count())
.from(answer)
.where(answer.question._id.eq(questionId))
.fetchOne()!!
.fetchOne()
}

override fun findPublicAnswersLikeTopN(questionId: Long, getCount: Long): List<EveryAnswerRetrieveResponse> {
Expand Down

0 comments on commit 39950ca

Please sign in to comment.