q-koa 12.9.6 → 13.0.0

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.
@@ -414,6 +414,10 @@ exports.initDataWithCache = exports.initData = async (ctx) => {
414
414
  const { is_cache } = await appConfig.getObject('base')
415
415
  const { includes, excludes = [] } = ctx.request.body
416
416
 
417
+ if (!includes) {
418
+ return ctx.SUCCESS(null)
419
+ }
420
+
417
421
  const cacheTarget = JSON.stringify(ctx.request.body)
418
422
 
419
423
  let result = null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.9.6",
3
+ "version": "13.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {