RBAC ADDED AND LOG FILTERING

This commit is contained in:
BIG2EYEZ
2024-01-16 17:54:33 +08:00
parent 1fbfa68f1a
commit 35d8c74990
4 changed files with 242 additions and 138 deletions

View File

@ -21,17 +21,18 @@ connection.connect((err) => {
});
*/
/*
const connection = mysql.createConnection({
host: process.env.host,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: "database",
database: "adminusers",
timezone: "Z", // Set the timezone to UTC
ssl: {
ca: fs.readFileSync(path.resolve(__dirname, '../../cert/DigiCertGlobalRootCA.crt.pem')),
}
});
*/
/*
const connection = mysql.createConnection({
host: process.env.host,
user: process.env.DB_USER,
@ -39,9 +40,9 @@ const connection = mysql.createConnection({
database: "adminusers",
timezone: "Z", // Set the timezone to UTC
});
*/
module.exports = { connection, };
module.exports = { connection };