From e277292194a8fd6f2b5f8d818e7ebd4841cd7fc4 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 10 Feb 2023 14:29:22 -0800 Subject: [PATCH] Remove unnecesary firebase deployment items. --- firebase/firebase.json | 2 +- firebase/functions/index.js | 12 ------------ firebase/functions/package-lock.json | 1 + 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/firebase/firebase.json b/firebase/firebase.json index a68a19587..c61ae8dea 100644 --- a/firebase/firebase.json +++ b/firebase/firebase.json @@ -1,7 +1,7 @@ { "functions": { "predeploy": [ - "npm --prefix \"$RESOURCE_DIR\" run lint" + ] } } diff --git a/firebase/functions/index.js b/firebase/functions/index.js index 27722db19..f675c68fe 100644 --- a/firebase/functions/index.js +++ b/firebase/functions/index.js @@ -28,16 +28,4 @@ exports.processSignUp = functions.auth.user().onCreate((user) => { // Set custom user claims on this newly created user. return admin.auth().setCustomUserClaims(user.uid, customClaims); - //exports.test = functions.auth. - - // .then(() => { - // // Update real-time database to notify client to force refresh. - // const metadataRef = admin.database().ref("metadata/" + user.uid); - // // Set the refresh time to the current UTC timestamp. - // // This will be captured on the client to force a token refresh. - // return metadataRef.set({ refreshTime: new Date().getTime() }); - // }) - // .catch(error => { - // console.log(error); - // }); }); diff --git a/firebase/functions/package-lock.json b/firebase/functions/package-lock.json index bdfb4798b..7ba0dfc0b 100644 --- a/firebase/functions/package-lock.json +++ b/firebase/functions/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "name": "functions", "dependencies": { "firebase-admin": "^9.5.0", "firebase-functions": "^3.13.2"