Skip to content

Commit

Permalink
we build this back up
Browse files Browse the repository at this point in the history
  • Loading branch information
teenageknight committed Sep 22, 2024
1 parent 0738ac6 commit cf79db8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { onCall } from "firebase-functions/v2/https";
const fetch = require("node-fetch");
const Geocodio = require("geocodio-library-node");

const { initializeApp } = require("firebase-admin/app");
const { initializeApp, cert } = require("firebase-admin/app");
const { getFirestore } = require("firebase-admin/firestore");

// let serviceAccountLocal: any;
Expand All @@ -33,15 +33,17 @@ const { getFirestore } = require("firebase-admin/firestore");
console.log("right outside of the if");
// console.log(serviceAccountLocal);

// if (serviceAccountLocal) {
// const config = {
// credential: cert(serviceAccountLocal),
// };
if (false) {
const serviceAccountLocal = require("../service-account-keys/bryce-jackson-website-firebase-adminsdk-ra4es-7428ff5320.json");

// initializeApp(config);
// } else {
// initializeApp();
// }
const config = {
credential: cert(serviceAccountLocal),
};

initializeApp(config);
} else {
initializeApp();
}

initializeApp();

Expand Down

0 comments on commit cf79db8

Please sign in to comment.