Skip to content

Commit

Permalink
chore: use .has_validate? on conditions, not has_batch_change?
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 30, 2024
1 parent f521069 commit 26f4a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash/actions/update/bulk.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2739,7 +2739,7 @@ defmodule Ash.Actions.Update.Bulk do
def batch_change(%{change: {module, change_opts}, where: where} = change, batch, context, actor) do
must_be_atomic? =
Enum.any?(change.where, fn {mod, _} ->
!mod.has_batch_change?() && !mod.has_change?()
!mod.has_validate?()
end)

case change_opts do
Expand Down

0 comments on commit 26f4a15

Please sign in to comment.