Fix context (this) in _checkPgPass.

This commit is contained in:
Pimm "de Chinchilla" Hogeling 2020-08-21 16:18:43 +02:00
parent acfbafac82
commit 82b0ac0c6c

View File

@ -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
}