Skip to content

Commit

Permalink
Fix regresssion in v1 functions with only context. (#1545)
Browse files Browse the repository at this point in the history
Fixes #1541
  • Loading branch information
inlined committed Mar 27, 2024
1 parent 23510f7 commit b71fea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v1/cloud-functions.ts
Expand Up @@ -367,7 +367,7 @@ export function makeCloudFunction<EventData>({
service,
triggerResource,
}: MakeCloudFunctionArgs<EventData>): CloudFunction<EventData> {
handler = withInit(handler);
handler = withInit(handler ?? contextOnlyHandler);
const cloudFunction: any = (data: any, context: any) => {
if (legacyEventType && context.eventType === legacyEventType) {
/*
Expand Down

0 comments on commit b71fea9

Please sign in to comment.