Skip to content

Commit

Permalink
dont crash if no gradres
Browse files Browse the repository at this point in the history
  • Loading branch information
NatTuck committed Oct 4, 2024
1 parent 6edafed commit 77db511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inkfish_web/controllers/sub_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule InkfishWeb.SubController do

case Subs.create_sub(sub_params) do
{:ok, sub} ->
:ok = GradingTasks.assign_grading_tasks(sub.assignment_id)
GradingTasks.assign_grading_tasks(sub.assignment_id)

conn
|> put_flash(:info, "Sub created successfully.")
Expand Down

0 comments on commit 77db511

Please sign in to comment.