Skip to content

Commit

Permalink
Edited the environment variable for cloud functions. (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta345 authored Sep 1, 2023
1 parent e59b75d commit 7b30935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/firestore-export/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)');

Expand Down

0 comments on commit 7b30935

Please sign in to comment.