переименовал ключ из конфига, db -> database

This commit is contained in:
Данил 2024-06-24 22:32:50 +03:00
parent 21720b6dfa
commit e80871d1ae

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['database']['user'],
password: config['database']['password'],
host: config['database']['host'],
port: config['database']['port'],
database: config['database']['name']
});
module.exports = pool;