Skip to content

Commit

Permalink
forgot to initilize firebase app in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
debkanchan committed Jul 15, 2023
1 parent c954abe commit 5c71398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/functions/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as logger from "firebase-functions/logger";
import { region } from "firebase-functions";
import { initializeApp } from "firebase-admin/app";
import { onDocumentCreated } from "firebase-functions/v2/firestore";
import { FieldValue, getFirestore } from "firebase-admin/firestore";
import { setGlobalOptions } from "firebase-functions/v2/options";
Expand All @@ -13,6 +14,8 @@ class ExpectedError extends Error {
}
}

initializeApp();

export const createUserWallet = region("asia-south1")
.auth.user()
.onCreate((user) => {
Expand Down

0 comments on commit 5c71398

Please sign in to comment.