From 44b9086ded39420f51204a2dde7e094c0a0c7584 Mon Sep 17 00:00:00 2001 From: Darwin D Wu Date: Sun, 6 Aug 2023 19:58:14 -0700 Subject: [PATCH] add events to function arg when invoking --- lib/inngest/function/handler.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/inngest/function/handler.ex b/lib/inngest/function/handler.ex index c175d12..a0193f7 100644 --- a/lib/inngest/function/handler.ex +++ b/lib/inngest/function/handler.ex @@ -28,6 +28,7 @@ defmodule Inngest.Function.Handler do %{steps: steps} = _handler, %{ event: event, + events: events, params: %{ "ctx" => %{ "stack" => %{ @@ -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