From 55dd75bf0e160469249fed63fe82cfe7fad807f1 Mon Sep 17 00:00:00 2001 From: aalej Date: Mon, 2 Oct 2023 22:29:24 +0800 Subject: [PATCH] Correctly set FUNCTION_TARGET for multilevel grouped functions --- CHANGELOG.md | 1 + src/gcp/cloudfunctionsv2.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29bb2d..bde97673fe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1 @@ +- Fixed an issue with deploying multilevel grouped functions containing v2 functions. (#6419) diff --git a/src/gcp/cloudfunctionsv2.ts b/src/gcp/cloudfunctionsv2.ts index 520e8e7967f..8f935952ff3 100644 --- a/src/gcp/cloudfunctionsv2.ts +++ b/src/gcp/cloudfunctionsv2.ts @@ -331,7 +331,7 @@ export async function createFunction(cloudFunction: InputCloudFunction): Promise cloudFunction.serviceConfig.environmentVariables = { ...cloudFunction.serviceConfig.environmentVariables, - FUNCTION_TARGET: functionId.replace("-", "."), + FUNCTION_TARGET: functionId.replaceAll("-", "."), }; try { @@ -439,7 +439,7 @@ export async function updateFunction(cloudFunction: InputCloudFunction): Promise cloudFunction.serviceConfig.environmentVariables = { ...cloudFunction.serviceConfig.environmentVariables, - FUNCTION_TARGET: functionId.replace("-", "."), + FUNCTION_TARGET: functionId.replaceAll("-", "."), }; try {