From 82b0ac0c6c251ce16d68f36cf0cf1a53f95681c2 Mon Sep 17 00:00:00 2001 From: "Pimm \"de Chinchilla\" Hogeling" Date: Fri, 21 Aug 2020 16:18:43 +0200 Subject: [PATCH] Fix context (this) in _checkPgPass. --- packages/pg/lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pg/lib/client.js b/packages/pg/lib/client.js index 72973c44..3bc73f98 100644 --- a/packages/pg/lib/client.js +++ b/packages/pg/lib/client.js @@ -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 }