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 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
@@ -98,6 +98,7 @@ module.exports = {
98
98
  $lt: Sequelize.Op.lt,
99
99
  $lte: Sequelize.Op.lte,
100
100
  $between: Sequelize.Op.between,
101
+ $notBetween: Sequelize.Op.notBetween,
101
102
  $notIn: Sequelize.Op.notIn,
102
103
  $in: Sequelize.Op.in,
103
104
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.5.1",
3
+ "version": "12.5.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {