actual-server/account-db.js
2022-03-31 13:19:08 -04:00

13 lines
289 B
JavaScript

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 };