Update 'index.js'

This commit is contained in:
wumpus 2022-08-05 21:00:10 +02:00
parent f696c8579a
commit b6bcb92498

View File

@ -1,5 +1,5 @@
let fs = require("fs");
function loadDB(databaseFile) {
function DB(databaseFile) {
let _db;
if (fs.existsSync(databaseFile)) {
_db = JSON.parse(fs.readFileSync(databaseFile, "utf8"));
@ -16,4 +16,4 @@ function loadDB(databaseFile) {
}
}
}
exports.loadDB = loadDB;
exports.DB = DB;