mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 04:33:11 +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 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue