From e5562daba77ccd6f36ecfe6bb5c6a2ab9a1b0da1 Mon Sep 17 00:00:00 2001 From: Krasen Penchev Date: Mon, 5 Dec 2022 19:00:04 +0200 Subject: [PATCH] Fix undefined reference --- lib/erlef/jobs.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/erlef/jobs.ex b/lib/erlef/jobs.ex index 3ccf3f13..bc0e1811 100644 --- a/lib/erlef/jobs.ex +++ b/lib/erlef/jobs.ex @@ -356,7 +356,7 @@ defmodule Erlef.Jobs do # order to return a tuple result from the transaction. @spec transact((fun() -> {:ok | :error, term()}), Keyword.t()) :: {:ok | :error, term()} defp transact(fun, opts \\ []) when is_function(fun) do - transaction( + Repo.transaction( fn repo -> {:arity, arity} = Function.info(fun, :arity) @@ -378,7 +378,7 @@ defmodule Erlef.Jobs do result {:error, error} -> - rollback(error) + Repo.rollback(error) end end, opts