chore: format

This commit is contained in:
Zach Daniel 2024-08-08 09:07:59 -04:00
parent 68ef4d3144
commit a65a84fe83
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,7 @@
defmodule Ash.Actions.Create.Bulk do defmodule Ash.Actions.Create.Bulk do
@moduledoc false @moduledoc false
@spec run(Ash.Domain.t(), Ash.Resource.t(), atom(), Enumerable.t(map), Keyword.t()) :: Ash.BulkResult.t() @spec run(Ash.Domain.t(), Ash.Resource.t(), atom(), Enumerable.t(map), Keyword.t()) ::
Ash.BulkResult.t()
def run(domain, resource, action_name, inputs, opts) do def run(domain, resource, action_name, inputs, opts) do
action = Ash.Resource.Info.action(resource, action_name) action = Ash.Resource.Info.action(resource, action_name)

View file

@ -283,7 +283,9 @@ defmodule Ash.EmbeddableType do
{:cont, {:ok, index, Map.put(acc, attribute.name, casted)}} {:cont, {:ok, index, Map.put(acc, attribute.name, casted)}}
else else
{:error, error} -> {:error, error} ->
error = Ash.Error.set_path(Ash.Error.to_ash_error(error), attribute.name) error =
Ash.Error.set_path(Ash.Error.to_ash_error(error), attribute.name)
{:halt, {:error, index, error}} {:halt, {:error, index, error}}
end end
else else