Skip to content

Commit

Permalink
fix: problem with options array (#298)
Browse files Browse the repository at this point in the history
fix: problem with options array
  • Loading branch information
mateuszszczecina authored Dec 17, 2024
1 parent 5a63504 commit b841e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/chapter/repositories/adminChapter.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ export class AdminChapterRepository {
'isCorrect', ${questionAnswerOptions.isCorrect},
'position', ${questionAnswerOptions.position}
)
FROM ${questionAnswerOptions}
WHERE ${questionAnswerOptions.questionId} = ${questions.id}
FROM ${questionAnswerOptions} questionAnswerOptions
WHERE questionAnswerOptions.question_id = questions.id
)
)
)
Expand Down

0 comments on commit b841e25

Please sign in to comment.