fix: maintain connections pool (#8670)

This commit is contained in:
Harminder Virk
2024-08-20 14:54:52 +05:30
committed by GitHub
parent eb0bfe9f33
commit 69830ca89c
4 changed files with 10 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ export function createPgConnection(options: Options) {
pool: {
// https://knexjs.org/guide/#pool
...(pool ?? {}),
min: (pool?.min as number) ?? 0,
min: (pool?.min as number) ?? 2,
},
})
}