From 84a0fc8ba6d5737b306afe9d1d8448d13fc6a88d Mon Sep 17 00:00:00 2001 From: Shweta Shetye Date: Fri, 1 Sep 2023 09:30:24 +0000 Subject: [PATCH] Edited the environment variable for cloud functions. --- functions/firestore-export/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/firestore-export/index.js b/functions/firestore-export/index.js index cc4eb509..2c440162 100644 --- a/functions/firestore-export/index.js +++ b/functions/firestore-export/index.js @@ -10,7 +10,7 @@ exports.scheduledFirestoreExport = functions.pubsub .schedule('every 24 hours') .onRun((context) => { - const projectId = process.env.GCP_PROJECT || process.env.GCLOUD_PROJECT; + const projectId = process.env.GCP_PROJECT; const databaseName = client.databasePath(projectId, '(default)');