remove firease test
This commit is contained in:
parent
5f3521f452
commit
d604d6e1de
|
@ -1,22 +0,0 @@
|
|||
require("dotenv").config();
|
||||
|
||||
const firebase_admin = require("firebase-admin");
|
||||
const { getDatabase } = require("firebase-admin/database");
|
||||
const serviceAccount = require("../firebase/conf.json");
|
||||
if (!firebase_admin.apps.length) {
|
||||
firebase_admin.initializeApp({
|
||||
credential: firebase_admin.credential.cert(serviceAccount),
|
||||
databaseURL: process.env.FIREBASE_URL,
|
||||
databaseAuthVariableOverride: {
|
||||
uid: process.env.FIREBASE_UID,
|
||||
},
|
||||
});
|
||||
}
|
||||
const firebase = getDatabase().ref("/");
|
||||
|
||||
// firebase.set();
|
||||
// (await firebase.get()).val();
|
||||
|
||||
(async () => {
|
||||
console.log((await firebase.get()).val());
|
||||
})();
|
Loading…
Reference in a new issue