update with dashboard data

This commit is contained in:
BIG2EYEZ
2024-01-09 17:34:16 +08:00
parent d1d3091eec
commit 8a66068b98
4 changed files with 295 additions and 31 deletions

View File

@ -40,7 +40,14 @@ const connection = mysql.createConnection({
timezone: "Z", // Set the timezone to UTC
});
module.exports = { connection };
const connection2 = mysql.createConnection({
host: process.env.host,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: "eco_saver",
timezone: "Z", // Set the timezone to UTC
});
module.exports = { connection,connection2 };