From a860b89ef054200a42141935614ae936804ef1af Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 27 May 2022 23:23:45 -0400 Subject: [PATCH] Add config for min --- src/config.ts | 3 ++- src/databases/databases.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 2aa55ef..a7cc7d3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -77,7 +77,8 @@ addDefaults(config, { host: "", password: "", port: 5432, - max: 150 + max: 150, + min: 10 }, dumpDatabase: { enabled: false, diff --git a/src/databases/databases.ts b/src/databases/databases.ts index 074ea52..48001fa 100644 --- a/src/databases/databases.ts +++ b/src/databases/databases.ts @@ -23,6 +23,7 @@ if (config.mysql) { password: config.postgres?.password, port: config.postgres?.port, max: config.postgres?.max, + min: config.postgres?.min, } }); @@ -39,6 +40,7 @@ if (config.mysql) { password: config.postgres?.password, port: config.postgres?.port, max: config.postgres?.max, + min: config.postgres?.min, } }); } else {