Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/invoker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ export function wrapCloudEventFunction(
cloudevent = getBinaryCloudEventContext(req);
cloudevent.data = req.body;
}
// Callback style if user function has more than 2 arguments.
if (userFunction!.length > 2) {
// Callback style if user function has more than 1 argument.
if (userFunction!.length > 1) {
const fn = userFunction as CloudEventFunctionWithCallback;
return fn(cloudevent, callback);
}
Expand Down