From 1d85a56bf22d7c1a7c5084d21a373d08c463a896 Mon Sep 17 00:00:00 2001 From: Georgi 7DIGIT Date: Wed, 28 Feb 2024 21:18:09 +0200 Subject: [PATCH] Refactor: return the KZ pii and clinical pools for PL country --- service/utils/dbConfig.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/utils/dbConfig.js b/service/utils/dbConfig.js index 6725834..df65c03 100644 --- a/service/utils/dbConfig.js +++ b/service/utils/dbConfig.js @@ -24,6 +24,10 @@ export const getDBPool = (dbType, country) => { if (dbType === "piiDb") return PII_PG_POOL_KZ; else if (dbType === "clinicalDb") return CLINICAL_PG_POOL_KZ; else throw Error("DB Type not recognized"); + case "PL": + if (dbType === "piiDb") return PII_PG_POOL_KZ; + else if (dbType === "clinicalDb") return CLINICAL_PG_POOL_KZ; + else throw Error("DB Type not recognized"); default: throw Error("DB Country not recognized"); }