q-koa 12.5.1 → 12.5.3
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 +0 -6
- package/core/config.js +1 -0
- package/package.json +1 -1
package/core/app.js
CHANGED
|
@@ -1173,11 +1173,6 @@ class APP {
|
|
|
1173
1173
|
ctx.SUCCESS(result)
|
|
1174
1174
|
}
|
|
1175
1175
|
if (fn === 'sum') {
|
|
1176
|
-
const requiredInclude = myInclude.filter(
|
|
1177
|
-
(item) =>
|
|
1178
|
-
(item.where && !item.hasOwnProperty('required')) ||
|
|
1179
|
-
(item.hasOwnProperty('required') && item.required)
|
|
1180
|
-
)
|
|
1181
1176
|
if (!(attributes && attributes.length === 1)) {
|
|
1182
1177
|
throw new Error(`${fn}方法需要attributes一个`)
|
|
1183
1178
|
}
|
|
@@ -1185,7 +1180,6 @@ class APP {
|
|
|
1185
1180
|
attributes[0],
|
|
1186
1181
|
{
|
|
1187
1182
|
where: _where,
|
|
1188
|
-
include: requiredInclude,
|
|
1189
1183
|
}
|
|
1190
1184
|
)
|
|
1191
1185
|
ctx.SUCCESS(result)
|
package/core/config.js
CHANGED