Skip to content

Commit 4027917

Browse files
Merge pull request #2 from softrams/HPMS-EXTRA-CONFIG
Update index.js
2 parents f122949 + 207725a commit 4027917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports.createPool = async (poolName, allowMultiStatements = false) => {
1616
const srcCfg = config.DATASOURCES[poolName];
1717
if (srcCfg) {
1818
pools[poolName] = mysql.createPool({
19-
connectionLimit: 5,
19+
connectionLimit: srcCfg.DB_CONNECTION_LIMIT || 5,
2020
host: srcCfg.DB_HOST,
2121
user: srcCfg.DB_USER,
2222
password: srcCfg.DB_PASSWORD,

0 commit comments

Comments
 (0)