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.js CHANGED
@@ -1316,7 +1316,7 @@ function requirePoolmanager () {
1316
1316
  if (PoolManager[connect]!=null){
1317
1317
  return PoolManager[connect];
1318
1318
  }
1319
- const connectSection = appsetting.getSection(connect || 'dev');
1319
+ const connectSection = appsetting.getConnection(connect || 'dev');
1320
1320
  if (!connectSection) throw new Error('数据库连接配置不存在');
1321
1321
  const pool = mysql.createPool(connectSection);
1322
1322
  PoolManager[connect] = pool;