Skip to content

Commit

Permalink
Continue support for creating a pg.Pool from another instance’s options
Browse files Browse the repository at this point in the history
by dropping the requirement for the `password` property to be enumerable.
  • Loading branch information
charmander committed Jan 15, 2020
1 parent 1638f38 commit 38fb41b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/pg/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ var Pool = require('pg-pool')
const poolFactory = (Client) => {
return class BoundPool extends Pool {
constructor (options) {
var config = Object.assign({ Client: Client }, options)
super(config)
super(options, Client)
}
}
}
Expand Down

0 comments on commit 38fb41b

Please sign in to comment.