q-koa 8.5.1 → 8.5.2

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.
@@ -104,7 +104,9 @@ exports.showTables = async (ctx) => {
104
104
  const defaultConfigPath = path.resolve(__dirname, `../${_model}/config.js`)
105
105
  const defaultConfigExist = fs.existsSync(defaultConfigPath)
106
106
  const target =
107
- Object.keys(app.config[_model]).length === 0 && defaultConfigExist
107
+ app.config[_model] &&
108
+ Object.keys(app.config[_model]).length === 0 &&
109
+ defaultConfigExist
108
110
  ? require(defaultConfigPath)
109
111
  : app.config[_model]
110
112
  // const target = Object.keys(app.config[model])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "8.5.1",
3
+ "version": "8.5.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {