chore: fix return type matching for generic actions

This commit is contained in:
Zach Daniel 2024-04-10 13:58:22 -04:00
parent bae263ca12
commit 268b335946

View file

@ -1272,8 +1272,11 @@ defmodule Ash do
{:ok, result} <- Ash.Actions.Action.run(domain, input, opts) do
{:ok, result}
else
:ok ->
:ok
{:error, error} ->
{:error, error}
{:error, Ash.Error.to_error_class(error)}
end
end