Skip to content

Commit 6b761b7

Browse files
committed
fix(resolver): remove unnecessary stop_on_error option
Only rollback_on_error?: false is needed to ensure after_transaction callbacks run on errors. The stop_on_error option is not required.
1 parent 54998bf commit 6b761b7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/graphql/resolver.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,6 @@ defmodule AshGraphql.Graphql.Resolver do
16651665
|> Ash.bulk_update(action, input,
16661666
return_errors?: true,
16671667
notify?: true,
1668-
stop_on_error?: false,
16691668
rollback_on_error?: false,
16701669
strategy: [:atomic, :stream, :atomic_batches],
16711670
allow_stream_with: :full_read,
@@ -1831,7 +1830,6 @@ defmodule AshGraphql.Graphql.Resolver do
18311830
|> Ash.bulk_destroy(action, input,
18321831
return_errors?: true,
18331832
notify?: true,
1834-
stop_on_error?: false,
18351833
rollback_on_error?: false,
18361834
authorize_changeset_with: authorize_bulk_with(query.resource),
18371835
strategy: [:atomic, :stream, :atomic_batches],

0 commit comments

Comments
 (0)