actual-server/account-db.js

14 lines
289 B
JavaScript
Raw Normal View History

2022-03-31 17:19:08 +00:00
let { join } = require('path');
let { openDatabase } = require('./db');
let accountDb = null;
function getAccountDb() {
if (accountDb == null) {
accountDb = openDatabase(join(__dirname, 'server-files/account.sqlite'));
}
return accountDb;
}
module.exports = { getAccountDb };