@ccci/micro-server 1.0.213 → 1.0.214

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/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -304309,7 +304309,7 @@ class BaseController {
304309
304309
  console.log("req.user.id :>> ", req.user.id);
304310
304310
  console.log("req.user.id :>> ", req.user._id);
304311
304311
  if (req.user && !req.query.disableDefaultId) {
304312
- data.createdById = req.user.id ?? req.user._id;
304312
+ data.createdById = req.user.id ?? req.user._id ?? req.user.user.id ?? req.user.user._id;
304313
304313
  }
304314
304314
  console.log("BaseController.create :>> ", data);
304315
304315
  let response4 = await this._model?.create(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.213",
3
+ "version": "1.0.214",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",