Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const dbConfig = {
  2. user: config.db.user,
  3. password: config.db.password,
  4. database: config.db.database,
  5. host: config.db.host,
  6. port: config.db.port,
  7. max: config.db.max,
  8. idleTimeoutMillis: config.db.idleTimeoutMillis,
  9. }
  10.  
  11. const pool = new pg.Pool(dbConfig)
  12. pool.on('error', function (err) {
  13. winston.error('idle client error', err.message, err.stack)
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement