Skip to content

Commit

Permalink
fix: resolve remaining error caused by previous schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
Eraxyso authored Dec 19, 2024
1 parent c72dd83 commit 4838f4f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions controller/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ func convertQuestions(questions []model.Questions) []openapi.Question {
res := []openapi.Question{}
for _, question := range questions {
q := openapi.Question{
CreatedAt: question.CreatedAt,
// Description: question.Description,
CreatedAt: question.CreatedAt,
Body: question.Body,
IsRequired: question.IsRequired,
QuestionId: question.ID,
QuestionId: &question.ID,
QuestionnaireId: question.QuestionnaireID,
Title: question.Body,
}
switch question.Type {
case "Text":
Expand Down

0 comments on commit 4838f4f

Please sign in to comment.