Skip to content

Commit

Permalink
insert ta
Browse files Browse the repository at this point in the history
  • Loading branch information
sushant12 committed Sep 24, 2024
1 parent 37ca09e commit 87616af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/handin/modules.ex
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,8 @@ defmodule Handin.Modules do
module_id: module_id,
user_id: user.id,
role: :teaching_assistant
}) do
})
|> Repo.insert() do
%Ecto.Changeset{valid?: true} -> {:ok, user}
{:ok, _} -> {:ok, user}
{:error, changeset} -> {:error, changeset}
Expand Down

0 comments on commit 87616af

Please sign in to comment.