Skip to content

Commit

Permalink
fix(firestore-bigquery-export): firestore access
Browse files Browse the repository at this point in the history
  • Loading branch information
jauntybrain committed Jan 12, 2024
1 parent dec8a70 commit 584712e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions firestore-bigquery-export/scripts/import/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const run = async (): Promise<number> => {
// Please see https://cloud.google.com/docs/authentication/production
if (!firebase.apps.length) {
firebase.initializeApp({
projectId: projectId,
credential: firebase.credential.applicationDefault(),
databaseURL: `https://${projectId}.firebaseio.com`,
});
Expand Down
1 change: 1 addition & 0 deletions firestore-bigquery-export/scripts/import/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ async function processDocuments(
if (!firebase.apps.length) {
// Initialize Firebase
firebase.initializeApp({
projectId: projectId,
credential: firebase.credential.applicationDefault(),
databaseURL: `https://${projectId}.firebaseio.com`,
});
Expand Down

0 comments on commit 584712e

Please sign in to comment.