mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
chore: hydrate atomic refs properly on bulk update
This commit is contained in:
parent
70ae75b203
commit
e5cee02cc6
1 changed files with 1 additions and 0 deletions
|
@ -1158,6 +1158,7 @@ defmodule Ash.Actions.Update.Bulk do
|
||||||
|> Ash.Changeset.prepare_changeset_for_action(action, opts)
|
|> Ash.Changeset.prepare_changeset_for_action(action, opts)
|
||||||
|> Ash.Changeset.put_context(context_key, %{index: index})
|
|> Ash.Changeset.put_context(context_key, %{index: index})
|
||||||
|> Ash.Changeset.atomic_update(opts[:atomic_update] || [])
|
|> Ash.Changeset.atomic_update(opts[:atomic_update] || [])
|
||||||
|
|> Ash.Changeset.hydrate_atomic_refs(opts[:actor], opts)
|
||||||
|> handle_params(
|
|> handle_params(
|
||||||
Keyword.get(opts, :assume_casted?, false),
|
Keyword.get(opts, :assume_casted?, false),
|
||||||
action,
|
action,
|
||||||
|
|
Loading…
Reference in a new issue