From 792d45d4023659f8b0112c39ebfb51e75c92244e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Arturo=20Cabral=20Mej=C3=ADa?= Date: Tue, 27 Dec 2022 16:18:52 -0500 Subject: [PATCH] fix: disable propagateCreateError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo Arturo Cabral Mejía --- src/database/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database/client.ts b/src/database/client.ts index d22e7ac6..35ffc197 100644 --- a/src/database/client.ts +++ b/src/database/client.ts @@ -18,8 +18,9 @@ const createDbConfig = (): Knex.Config => ({ min: process.env.DB_MIN_POOL_SIZE ? Number(process.env.DB_MIN_POOL_SIZE) : 0, max: process.env.DB_MAX_POOL_SIZE ? Number(process.env.DB_MAX_POOL_SIZE) : 3, idleTimeoutMillis: 10000, + propagateCreateError: false, }, - acquireConnectionTimeout: 2000, + acquireConnectionTimeout: 30000, }) let client: Knex