q-koa 8.4.5 → 8.5.1

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
@@ -1083,6 +1083,8 @@ class APP {
1083
1083
  [controller + '_id']: idList,
1084
1084
  ...myInclude[j].where,
1085
1085
  },
1086
+ order: myInclude[j].order,
1087
+ limit: myInclude[j].limit,
1086
1088
  include: myInclude[j].include,
1087
1089
  })
1088
1090
  objList = {
@@ -12,6 +12,7 @@ exports.login = async (ctx) => {
12
12
  const { host, header } = ctx.request
13
13
  const is_dev =
14
14
  host.startsWith('localhost') ||
15
+ !app.appConfig.is_check_admin ||
15
16
  (header.referer && header.referer.includes('is_dev=true'))
16
17
  const permissionList = await app.model.permission.findAll({
17
18
  attributes: {
@@ -15,7 +15,7 @@ exports.getList = (config) => (type) => {
15
15
  return list
16
16
  }
17
17
 
18
- exports.getObject = (config) => (type) => {
18
+ exports.getObject = (config, app) => async (type) => {
19
19
  if (app) {
20
20
  const applicationList = await app.cache.get('application')
21
21
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "8.4.5",
3
+ "version": "8.5.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {