From f7dbb13a4939301e2757cb0794453f5bce93794a Mon Sep 17 00:00:00 2001 From: Alex Lion Date: Wed, 25 Dec 2024 10:40:03 -0500 Subject: [PATCH] Fix tests --- lib/claper/quizzes.ex | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/claper/quizzes.ex b/lib/claper/quizzes.ex index ea75a15..726bcca 100644 --- a/lib/claper/quizzes.ex +++ b/lib/claper/quizzes.ex @@ -114,14 +114,12 @@ defmodule Claper.Quizzes do Claper.Workers.QuizLti.create(quiz.id) |> Oban.insert() end - quiz = - get_quiz!(quiz.id, [ - :quiz_questions, - quiz_questions: :quiz_question_opts, - presentation_file: :event + presentation_file = + Claper.Presentations.get_presentation_file!(quiz.presentation_file_id, [ + :event ]) - broadcast({:ok, quiz, quiz.presentation_file.event.uuid}, :quiz_created) + broadcast({:ok, quiz, presentation_file.event.uuid}, :quiz_created) {:ok, quiz}