Update 'index.js'
This commit is contained in:
parent
f696c8579a
commit
b6bcb92498
4
index.js
4
index.js
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user