Skip to content

Commit

Permalink
add events to function arg when invoking
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Aug 7, 2023
1 parent 1b2d246 commit 44b9086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/inngest/function/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule Inngest.Function.Handler do
%{steps: steps} = _handler,
%{
event: event,
events: events,
params: %{
"ctx" => %{
"stack" => %{
Expand Down Expand Up @@ -115,7 +116,7 @@ defmodule Inngest.Function.Handler do
end
end)

fn_arg = %{event: event, data: state_data}
fn_arg = %{event: event, events: events, data: state_data}
exec(next, fn_arg)
end

Expand Down

0 comments on commit 44b9086

Please sign in to comment.