Refactored codebase & auth bug fix

This commit is contained in:
2025-05-15 13:33:58 +03:00
parent 36226dbbac
commit eeda1b500d
13 changed files with 424 additions and 347 deletions
+15
View File
@@ -0,0 +1,15 @@
const Database = require("better-sqlite3");
const logger = require("../utils/logger.util");
const db_conf = require("../config/db.conf");
var db;
try {
logger.info("Connecting to Database...");
db = new Database(db_conf.path, { fileMustExist: true });
logger.info("Connected to Database.");
} catch (error) {
logger.error(error.message);
}
module.exports = db;