Skip to content

Commit 0758b76

Browse files
Pimmbrianc
authored andcommittedAug 26, 2020
Fix context (this) in _checkPgPass.
1 parent acfbafa commit 0758b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/pg/lib/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class Client extends EventEmitter {
215215
} else if (this.password !== null) {
216216
cb()
217217
} else {
218-
pgPass(this.connectionParameters, function (pass) {
218+
pgPass(this.connectionParameters, (pass) => {
219219
if (undefined !== pass) {
220220
this.connectionParameters.password = this.password = pass
221221
}

0 commit comments

Comments
 (0)
Please sign in to comment.