q-koa 12.0.3 → 12.0.4

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.
Files changed (2) hide show
  1. package/core/app.js +7 -3
  2. package/package.json +1 -1
package/core/app.js CHANGED
@@ -1877,9 +1877,13 @@ class APP {
1877
1877
  )
1878
1878
 
1879
1879
  const flag = await app[appName].model[controller][fn]({
1880
- createdid: ctx.request[`${appName}-user`]
1881
- ? ctx.request[`${appName}-user`].id
1882
- : 0,
1880
+ ...(ctx.request.clientType === 1
1881
+ ? {}
1882
+ : {
1883
+ createdid: ctx.request[`${appName}-user`]
1884
+ ? ctx.request[`${appName}-user`].id
1885
+ : 0,
1886
+ }),
1883
1887
  ...newData,
1884
1888
  })
1885
1889
  if (fn === 'create') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.0.3",
3
+ "version": "12.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {