We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b7df3 commit 2449956Copy full SHA for 2449956
src/invoker.ts
@@ -147,8 +147,8 @@ export function wrapCloudEventFunction(
147
cloudevent = getBinaryCloudEventContext(req);
148
cloudevent.data = req.body;
149
}
150
- // Callback style if user function has more than 2 arguments.
151
- if (userFunction!.length > 2) {
+ // Callback style if user function has more than 1 argument.
+ if (userFunction!.length > 1) {
152
const fn = userFunction as CloudEventFunctionWithCallback;
153
return fn(cloudevent, callback);
154
0 commit comments