diff --git a/firebase.js b/firebase.js index b60f610..906ecc2 100644 --- a/firebase.js +++ b/firebase.js @@ -10,8 +10,6 @@ // TODO: figure out the difference between above and below - - const { initializeApp, cert } = require("firebase-admin/app"); const { getAuth } = require("firebase-admin/auth"); //const admin = require("firebase-admin"); diff --git a/middleware/verifyAdmin.js b/middleware/verifyAdmin.js index c0f3e55..a0bd833 100644 --- a/middleware/verifyAdmin.js +++ b/middleware/verifyAdmin.js @@ -36,7 +36,7 @@ const checkAdminStatus = async (uid, token) => { console.log("checkAdmin function starting"); try { const res = await fetch( - `http://localhost:3000/users?firebaseUID=${uid}`, + `https://hfc-backend-delta.vercel.app/users?firebaseUID=${uid}`, { headers: { "Content-Type": "application/json",