Skip to content

Commit b71fea9

Browse files
authoredMar 27, 2024··
Fix regresssion in v1 functions with only context. (#1545)
Fixes #1541
1 parent 23510f7 commit b71fea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/v1/cloud-functions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export function makeCloudFunction<EventData>({
367367
service,
368368
triggerResource,
369369
}: MakeCloudFunctionArgs<EventData>): CloudFunction<EventData> {
370-
handler = withInit(handler);
370+
handler = withInit(handler ?? contextOnlyHandler);
371371
const cloudFunction: any = (data: any, context: any) => {
372372
if (legacyEventType && context.eventType === legacyEventType) {
373373
/*

0 commit comments

Comments
 (0)
Please sign in to comment.