Skip to content

Commit

Permalink
Specify using v1 Cloud Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maurice authored Nov 5, 2024
1 parent ee5157f commit d099e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/testapp/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
'use strict';

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.https.onCall((data) => {
Expand Down

0 comments on commit d099e4d

Please sign in to comment.