From 219424550b7933c4289cfdd2bb41a207ca248094 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Tue, 6 Oct 2020 21:02:16 -0400 Subject: [PATCH] Fix local name --- lib/document_stores/postgres.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/document_stores/postgres.js b/lib/document_stores/postgres.js index 83e13f0..9aaa520 100644 --- a/lib/document_stores/postgres.js +++ b/lib/document_stores/postgres.js @@ -66,8 +66,8 @@ PostgresDocumentStore.prototype = { // A connection wrapper safeConnect: function (callback) { - this.pool.connect((err, client, done) => { - if (err) { + this.pool.connect((error, client, done) => { + if (error) { winston.error('error connecting to postgres', {error}); callback(error); } else {