diff --git a/postgresql.js b/postgresql.js index 4c80eb0..1bdcc4a 100644 --- a/postgresql.js +++ b/postgresql.js @@ -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;