Skip to content

Commit

Permalink
chore: move_attributes_to_atomics before handle_allow_nil_atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 22, 2024
1 parent e6d52f2 commit 5be7a56
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 @@ -497,10 +497,10 @@ defmodule Ash.Actions.Update.Bulk do
authorize_atomic_changeset(query, atomic_changeset, opts),
{query, atomic_changeset} <-
add_changeset_filters(query, atomic_changeset),
atomic_changeset <- Ash.Changeset.move_attributes_to_atomics(atomic_changeset),
%Ash.Changeset{valid?: true} = atomic_changeset <-
Ash.Changeset.handle_allow_nil_atomics(atomic_changeset, opts[:actor]),
atomic_changeset <- sort_atomic_changes(atomic_changeset),
atomic_changeset <- Ash.Changeset.move_attributes_to_atomics(atomic_changeset),
{:ok, data_layer_query} <-
Ash.Query.data_layer_query(query) do
case Ash.DataLayer.update_query(
Expand Down

0 comments on commit 5be7a56

Please sign in to comment.