q-koa 8.4.6 → 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.
package/core/app.js
CHANGED
|
@@ -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
|
-
|
|
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/core/file/utils/index.js
CHANGED