Skip to content

Commit 12275b6

Browse files
sy-recordsLinkinStars
authored andcommitted
fix: Fix missing QuestionOrderCondFrequent
1 parent 01238d5 commit 12275b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/schema/question_schema.go

+1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ const (
377377
QuestionOrderCondScore = "score"
378378
QuestionOrderCondUnanswered = "unanswered"
379379
QuestionOrderCondRecommend = "recommend"
380+
QuestionOrderCondFrequent = "frequent"
380381

381382
// HotInDays limit max days of the hottest question
382383
HotInDays = 90

internal/service/content/question_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ func (qs *QuestionService) GetRecommendQuestionPage(ctx context.Context, req *sc
14621462
return nil, 0, err
14631463
}
14641464

1465-
questions, err = qs.questioncommon.FormatQuestionsPage(ctx, questionList, req.LoginUserID, "frequent")
1465+
questions, err = qs.questioncommon.FormatQuestionsPage(ctx, questionList, req.LoginUserID, schema.QuestionOrderCondFrequent)
14661466
if err != nil {
14671467
return nil, 0, err
14681468
}

0 commit comments

Comments
 (0)