chore: hydrate atomic refs properly on bulk update

This commit is contained in:
Zach Daniel 2024-02-10 18:56:09 -05:00
parent 70ae75b203
commit e5cee02cc6

View file

@ -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,