Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCoelho2003 committed Sep 23, 2024
1 parent 6b0f7ec commit 678c82d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/atomic/organizations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 678c82d

Please sign in to comment.