обновление конфига

This commit is contained in:
Данил 2024-02-15 10:51:09 +03:00
parent 30163b4a5b
commit 84a0c0502f
2 changed files with 18 additions and 10 deletions

View file

@ -4,11 +4,11 @@ const fs = require("fs");
const config = yaml.parse(fs.readFileSync("./config.yaml", "utf-8"));
const pool = new pg.Pool({
user: config['db_user'],
password: config['db_password'],
host: config['db_host'],
port: config['db_port'],
database: config['db_name']
user: config['db']['user'],
password: config['db']['password'],
host: config['db']['host'],
port: config['db']['port'],
database: config['db']['name']
});
module.exports = pool;