Skip to content

Commit

Permalink
fix: copy requiredQuestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Jul 29, 2024
1 parent 98db180 commit d36654a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func RetrieveQuestions(c *fiber.Ctx) (err error) {
return common.InternalServerError("[retrieve questions]: number of questions too small")
}

copy(tmpQuestions, requiredQuestions)
tmpQuestions = append(tmpQuestions, requiredQuestions...)

jsonTmpQuestions, _ := json.Marshal(questionConfig)
log.Debug().Msgf("questionsResponse: %s", string(jsonTmpQuestions))
Expand Down

0 comments on commit d36654a

Please sign in to comment.