From 791b3608c9889c8d3ae7d451279d96d8251bebbf Mon Sep 17 00:00:00 2001 From: Thomas Bouldin Date: Wed, 27 Mar 2024 10:50:37 -0700 Subject: [PATCH] Fix regresssion in v1 functions with only context. Fixes #1541 --- src/v1/cloud-functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v1/cloud-functions.ts b/src/v1/cloud-functions.ts index 75921ab6f..d66539fb7 100644 --- a/src/v1/cloud-functions.ts +++ b/src/v1/cloud-functions.ts @@ -367,7 +367,7 @@ export function makeCloudFunction({ service, triggerResource, }: MakeCloudFunctionArgs): CloudFunction { - handler = withInit(handler); + handler = withInit(handler ?? contextOnlyHandler); const cloudFunction: any = (data: any, context: any) => { if (legacyEventType && context.eventType === legacyEventType) { /*