From 1510a3cfcea9ec11b6f84061376422db0add7b00 Mon Sep 17 00:00:00 2001
From: Andrei Cioromila <andrei.cioromila@thinslices.com>
Date: Wed, 20 Feb 2019 16:29:11 +0200
Subject: [PATCH] fix(*): Use default setting for pool connection timeout

Our custom setting is really low, which means the connections are destryed and recreated very often.
This may lead to errors in acquiring a connection to the db
---
 packages/xpub-faraday/config/default.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/xpub-faraday/config/default.js b/packages/xpub-faraday/config/default.js
index e900f2a16..597745bbc 100644
--- a/packages/xpub-faraday/config/default.js
+++ b/packages/xpub-faraday/config/default.js
@@ -40,7 +40,7 @@ module.exports = {
   },
   'pubsweet-server': {
     db: getDbConfig(),
-    pool: { min: 0, max: 10, idleTimeoutMillis: 1000 },
+    pool: { min: 0, max: 10 },
     ignoreTerminatedConnectionError: true,
     port: 3000,
     logger,
-- 
GitLab