From 13e78f0ee2ac9deff979da696ff3a481695eee22 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 28 Feb 2022 14:15:00 +0000 Subject: [PATCH] fix: revert using pool --- packages/cron/src/lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cron/src/lib/utils.js b/packages/cron/src/lib/utils.js index 0a4773b505..52ef441491 100644 --- a/packages/cron/src/lib/utils.js +++ b/packages/cron/src/lib/utils.js @@ -97,5 +97,5 @@ export function getPg(env, mode = 'rw') { mode === 'rw' ? env.DATABASE_CONNECTION : env.RO_DATABASE_CONNECTION } if (!connectionString) throw new Error('missing Postgres connection string') - return new pg.Pool({ connectionString, allowExitOnIdle: true }) + return new pg.Client({ connectionString }) }