Skip to content

Commit

Permalink
fix: revert using pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Feb 28, 2022
1 parent 15436a6 commit 13e78f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cron/src/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}

0 comments on commit 13e78f0

Please sign in to comment.