q-koa 11.6.0 → 11.6.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.
@@ -52,6 +52,6 @@ exports.login = async (ctx) => {
52
52
  token,
53
53
  user: app.appConfig.loginData
54
54
  ? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
55
- : result,
55
+ : result.toJSON(),
56
56
  })
57
57
  }
@@ -47,7 +47,7 @@ exports.login = async (ctx) => {
47
47
  token,
48
48
  user: app.appConfig.loginData
49
49
  ? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
50
- : result,
50
+ : result.toJSON(),
51
51
  })
52
52
  }
53
53
  if (
@@ -212,7 +212,7 @@ exports.login = async (ctx) => {
212
212
  token,
213
213
  user: app.appConfig.loginData
214
214
  ? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
215
- : result,
215
+ : result.toJSON(),
216
216
  })
217
217
  }
218
218
 
@@ -432,7 +432,7 @@ exports.checkLogin = async (ctx) => {
432
432
  token,
433
433
  user: app.appConfig.loginData
434
434
  ? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
435
- : result,
435
+ : result.toJSON(),
436
436
  })
437
437
  }
438
438
 
@@ -498,7 +498,7 @@ exports.mp_login = async (ctx) => {
498
498
  token,
499
499
  user: app.appConfig.loginData
500
500
  ? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
501
- : result,
501
+ : result.toJSON(),
502
502
  })
503
503
  }
504
504
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "11.6.0",
3
+ "version": "11.6.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {