Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const dbConfig = {
- user: config.db.user,
- password: config.db.password,
- database: config.db.database,
- host: config.db.host,
- port: config.db.port,
- max: config.db.max,
- idleTimeoutMillis: config.db.idleTimeoutMillis,
- }
- const pool = new pg.Pool(dbConfig)
- pool.on('error', function (err) {
- winston.error('idle client error', err.message, err.stack)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement