From 87616af7323c578d8cac0e2e40e98eed0201edf2 Mon Sep 17 00:00:00 2001 From: sushant12 Date: Tue, 24 Sep 2024 10:40:44 +0100 Subject: [PATCH] insert ta --- lib/handin/modules.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/handin/modules.ex b/lib/handin/modules.ex index 762724a6..654d0726 100644 --- a/lib/handin/modules.ex +++ b/lib/handin/modules.ex @@ -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}