mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: return records from batches if items have after action hooks
This commit is contained in:
parent
f53626e65d
commit
b2c7048359
1 changed files with 1 additions and 1 deletions
|
@ -1229,7 +1229,7 @@ defmodule Ash.Actions.Create.Bulk do
|
|||
must_return_records? =
|
||||
state.must_return_records? ||
|
||||
Enum.any?(batch, fn item ->
|
||||
item.relationships not in [nil, %{}]
|
||||
item.relationships not in [nil, %{}] || !Enum.empty?(item.after_action)
|
||||
end) || function_exported?(module, :after_batch, 3)
|
||||
|
||||
%{
|
||||
|
|
Loading…
Reference in a new issue