mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
chore: format
This commit is contained in:
parent
68ef4d3144
commit
a65a84fe83
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue