feat: update database configuration to use USERS_DB environment variable

This commit is contained in:
Giuseppe Raffa
2026-04-14 13:13:24 +02:00
parent 3032dbcc96
commit 0ae64d0c5b

View File

@@ -10,7 +10,7 @@ const config = {
connectionTimeoutMillis: 5000
}
const pool = new Pool({ ...config, database: process.env.DB_NAME });
const pool = new Pool({ ...config, database: process.env.USERS_DB });
pool.on('error', (err) => {
console.error('Error in database', err);