mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
переименовал ключ из конфига, db -> database
This commit is contained in:
parent
21720b6dfa
commit
e80871d1ae
1 changed files with 5 additions and 5 deletions
|
@ -4,11 +4,11 @@ const fs = require("fs");
|
||||||
const config = yaml.parse(fs.readFileSync("./config.yaml", "utf-8"));
|
const config = yaml.parse(fs.readFileSync("./config.yaml", "utf-8"));
|
||||||
|
|
||||||
const pool = new pg.Pool({
|
const pool = new pg.Pool({
|
||||||
user: config['db']['user'],
|
user: config['database']['user'],
|
||||||
password: config['db']['password'],
|
password: config['database']['password'],
|
||||||
host: config['db']['host'],
|
host: config['database']['host'],
|
||||||
port: config['db']['port'],
|
port: config['database']['port'],
|
||||||
database: config['db']['name']
|
database: config['database']['name']
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = pool;
|
module.exports = pool;
|
||||||
|
|
Loading…
Add table
Reference in a new issue