Skip to content

Commit 52e5943

Browse files
committed
fix: add action to changeset for opts fetching in bulk create
1 parent 056a826 commit 52e5943

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ash/actions/create/bulk.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ defmodule Ash.Actions.Create.Bulk do
8787
end
8888

8989
{_, opts} =
90-
Ash.Actions.Helpers.set_context_and_get_opts(domain, Ash.Changeset.new(resource), opts)
90+
Ash.Actions.Helpers.set_context_and_get_opts(
91+
domain,
92+
%{Ash.Changeset.new(resource) | action: action},
93+
opts
94+
)
9195

9296
manual_action_can_bulk? =
9397
case action.manual do

0 commit comments

Comments
 (0)