Skip to content

Commit ec8fcfc

Browse files
committed
Fix GetExamQuestions having different fields for scanning from db.
Signed-off-by: Aliwoto <[email protected]>
1 parent 51c9e4a commit ec8fcfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/database/helpers_exams.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,10 @@ func GetExamQuestions(data *GetExamQuestionsData) ([]*ExamQuestion, error) {
689689
option2,
690690
option3,
691691
option4,
692-
created_at
692+
created_at,
693+
is_pointer,
694+
pointer_count,
695+
pointer_to_exam_id
693696
FROM exam_question WHERE exam_id = $1
694697
ORDER BY question_id
695698
LIMIT $2 OFFSET $3`,

0 commit comments

Comments
 (0)