doomiwork 4.2.4 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1304,7 +1304,7 @@ function requirePoolmanager () {
|
|
|
1304
1304
|
if (PoolManager[connect]!=null){
|
|
1305
1305
|
return PoolManager[connect];
|
|
1306
1306
|
}
|
|
1307
|
-
const connectSection = appsetting.
|
|
1307
|
+
const connectSection = appsetting.getConnection(connect || 'dev');
|
|
1308
1308
|
if (!connectSection) throw new Error('数据库连接配置不存在');
|
|
1309
1309
|
const pool = mysql.createPool(connectSection);
|
|
1310
1310
|
PoolManager[connect] = pool;
|