Skip to content

Commit

Permalink
Refactor: return the KZ pii and clinical pools for PL country
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Feb 28, 2024
1 parent 5e09535 commit 00db1cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/utils/dbConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 00db1cb

Please sign in to comment.