Skip to content

Commit d36654a

Browse files
committed
fix: copy requiredQuestions
1 parent 98db180 commit d36654a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apis/question.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func RetrieveQuestions(c *fiber.Ctx) (err error) {
9494
return common.InternalServerError("[retrieve questions]: number of questions too small")
9595
}
9696

97-
copy(tmpQuestions, requiredQuestions)
97+
tmpQuestions = append(tmpQuestions, requiredQuestions...)
9898

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

0 commit comments

Comments
 (0)