mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Fix context (this) in _checkPgPass.
This commit is contained in:
parent
acfbafac82
commit
82b0ac0c6c
@ -215,7 +215,7 @@ class Client extends EventEmitter {
|
||||
} else if (this.password !== null) {
|
||||
cb()
|
||||
} else {
|
||||
pgPass(this.connectionParameters, function (pass) {
|
||||
pgPass(this.connectionParameters, (pass) => {
|
||||
if (undefined !== pass) {
|
||||
this.connectionParameters.password = this.password = pass
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user