LinkinStars commented on code in PR #1271:
URL: https://github.com/apache/answer/pull/1271#discussion_r1978709135
##########
internal/repo/question/question_repo.go:
##########
@@ -417,6 +417,7 @@ func (qr *questionRepo) GetQuestionPage(ctx
context.Context, page, pageSize int,
session.OrderBy("question.pin desc,question.vote_count DESC,
question.view_count DESC")
case "unanswered":
session.Where("question.answer_count = 0")
+ session.And("question.status = ?",
entity.QuestionStatusAvailable)
Review Comment:
The `session.In("question.status", status)` may conflict with
`session.And("question.status = ?", entity.QuestionStatusAvailable)`
--
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]