This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/dev by this push:
new bc8c6993 feat(question): add closed question linking
bc8c6993 is described below
commit bc8c6993b754cea1470423bafb88c7a8480589ee
Author: LinkinStars <[email protected]>
AuthorDate: Fri Oct 18 19:01:23 2024 +0800
feat(question): add closed question linking
---
internal/repo/question/question_repo.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/repo/question/question_repo.go
b/internal/repo/question/question_repo.go
index 30370281..16b6085f 100644
--- a/internal/repo/question/question_repo.go
+++ b/internal/repo/question/question_repo.go
@@ -729,7 +729,7 @@ func (qr *questionRepo) UpdateQuestionLinkStatus(ctx
context.Context, status int
func (qr *questionRepo) GetQuestionLink(ctx context.Context, page, pageSize
int, questionID string, orderCond string, inDays int) (questionList
[]*entity.Question, total int64, err error) {
questionList = make([]*entity.Question, 0)
questionID = uid.DeShortID(questionID)
- questionStatus := []int{entity.QuestionStatusAvailable,
entity.QuestionStatusPending}
+ questionStatus := []int{entity.QuestionStatusAvailable,
entity.QuestionStatusClosed, entity.QuestionStatusPending}
if questionID == "0" {
return nil, 0,
errors.InternalServer(reason.DatabaseError).WithError(
fmt.Errorf("questionID is empty"),