From 26f4a1595b573646fb6d59e0a19602ae871c845b Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 30 Jul 2024 06:51:58 -0400 Subject: [PATCH] chore: use `.has_validate?` on conditions, not `has_batch_change?` --- lib/ash/actions/update/bulk.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash/actions/update/bulk.ex b/lib/ash/actions/update/bulk.ex index 34f6de24f..5fb9dcb1a 100644 --- a/lib/ash/actions/update/bulk.ex +++ b/lib/ash/actions/update/bulk.ex @@ -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