mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 13:03:02 +12:00
fix: use action from changeset (#1273)
This commit is contained in:
parent
e991575eb5
commit
f7397160b2
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ defmodule Ash.Actions.Update.Bulk do
|
|||
if (has_after_batch_hooks? || !Enum.empty?(atomic_changeset.after_action)) &&
|
||||
Keyword.get(opts, :transaction, true) do
|
||||
Ash.DataLayer.transaction(
|
||||
List.wrap(atomic_changeset.resource) ++ action.touches_resources,
|
||||
List.wrap(atomic_changeset.resource) ++ atomic_changeset.action.touches_resources,
|
||||
fn ->
|
||||
do_atomic_update(query, atomic_changeset, has_after_batch_hooks?, input, opts)
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue