LinkinStars commented on code in PR #668: URL: https://github.com/apache/incubator-answer/pull/668#discussion_r1413928655
########## internal/service/answer_common/answer.go: ########## Review Comment: > resolved. there's already `GetAnswerCount`, so I replaced with `GetCountByUserIDQuestionID`. > > I also found there're many method which only return count but using `FindAndCount`. e.g. > > https://github.com/apache/incubator-answer/blob/a00f6604118383ff907a17824af3d4eb8e4a08a7/internal/repo/answer/answer_repo.go#L285 > > This method will return count as well as the contents. should we update this kind of cases with `Count`? You're right. If you can work it out together, that's great. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
