Skip to content

Commit

Permalink
Merge pull request #24 from ppolariss/main
Browse files Browse the repository at this point in the history
fix: copy requiredQuestions
  • Loading branch information
JingYiJun authored Jul 29, 2024
2 parents 0fcf37c + d36654a commit 0b32381
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 0b32381

Please sign in to comment.