From ff07d40622e7a46e6ec416761cb9c3ea81c8ffe1 Mon Sep 17 00:00:00 2001 From: a-maurice Date: Tue, 5 Nov 2024 15:39:38 -0800 Subject: [PATCH] Specify using v1 Cloud Functions --- app_check/integration_test/functions/functions/index.js | 4 ++-- messaging/integration_test/functions/functions/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app_check/integration_test/functions/functions/index.js b/app_check/integration_test/functions/functions/index.js index 4d1a3435e5..b1e93b977b 100644 --- a/app_check/integration_test/functions/functions/index.js +++ b/app_check/integration_test/functions/functions/index.js @@ -14,9 +14,9 @@ * limitations under the License. */ -const functions = require('firebase-functions'); +const functions = require('firebase-functions/v1'); const admin = require('firebase-admin'); -admin.initializeApp(functions.config().firebase); +admin.initializeApp(); // Adds two numbers to each other. exports.addNumbers = functions diff --git a/messaging/integration_test/functions/functions/index.js b/messaging/integration_test/functions/functions/index.js index 62e5a7ae8f..9fe34b399c 100644 --- a/messaging/integration_test/functions/functions/index.js +++ b/messaging/integration_test/functions/functions/index.js @@ -15,7 +15,7 @@ */ // Import the Firebase SDK for Google Cloud Functions. -const functions = require('firebase-functions'); +const functions = require('firebase-functions/v1'); // Import and initialize the Firebase Admin SDK. const admin = require('firebase-admin'); admin.initializeApp();