Merge branch 'fixsort' into 'main'
fix See merge request backend/quiz/common!8
This commit is contained in:
commit
a3c9b5c949
@ -371,9 +371,9 @@ func (r *QuestionRepository) GetMapQuestions(ctx context.Context, allAnswers []m
|
||||
return nil, []model.ResultAnswer{}, err
|
||||
}
|
||||
if questionData.Type != model.TypeResult {
|
||||
questionData.AnswerID = answer.AnswerID
|
||||
questions = append(questions, questionData)
|
||||
questionMap[answer.AnswerID] = questionData.Title
|
||||
questionData.AnswerID = answer.AnswerID
|
||||
}
|
||||
}
|
||||
sort.Slice(questions, func(i, j int) bool {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user