From 678c82dddee6c4e460f7bcdad8114aa95861ee39 Mon Sep 17 00:00:00 2001 From: jojocoelho Date: Mon, 23 Sep 2024 23:56:15 +0100 Subject: [PATCH] fix: fix test --- lib/atomic/organizations.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/atomic/organizations.ex b/lib/atomic/organizations.ex index 0e63f2407..0f80e856c 100644 --- a/lib/atomic/organizations.ex +++ b/lib/atomic/organizations.ex @@ -580,7 +580,10 @@ defmodule Atomic.Organizations do |> Repo.transaction() |> case do {:ok, %{announcement: announcement, post: _post}} -> - after_save.({:ok, announcement}) + case after_save.({:ok, announcement}) do + {:ok, announcement} -> {:ok, announcement} + error -> error + end {:error, _reason, changeset, _actions} -> {:error, changeset}