Skip to content

Commit f7dbb13

Browse files
committed
Fix tests
1 parent 4e943a1 commit f7dbb13

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/claper/quizzes.ex

+4-6
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,12 @@ defmodule Claper.Quizzes do
114114
Claper.Workers.QuizLti.create(quiz.id) |> Oban.insert()
115115
end
116116

117-
quiz =
118-
get_quiz!(quiz.id, [
119-
:quiz_questions,
120-
quiz_questions: :quiz_question_opts,
121-
presentation_file: :event
117+
presentation_file =
118+
Claper.Presentations.get_presentation_file!(quiz.presentation_file_id, [
119+
:event
122120
])
123121

124-
broadcast({:ok, quiz, quiz.presentation_file.event.uuid}, :quiz_created)
122+
broadcast({:ok, quiz, presentation_file.event.uuid}, :quiz_created)
125123

126124
{:ok, quiz}
127125

0 commit comments

Comments
 (0)