@ccci/micro-server 1.0.184 → 1.0.185

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -303813,7 +303813,9 @@ class BaseController {
303813
303813
  if (data["_search"]) {
303814
303814
  delete data["_search"];
303815
303815
  }
303816
- data.updatedById = (req.user || {}).id || null;
303816
+ if (!req.query.disableDefaultId) {
303817
+ data.updatedById = (req.user || {}).id || null;
303818
+ }
303817
303819
  let originalData = await this._model?.findByPk(data.id);
303818
303820
  let response = await this._model?.update(data, { where: req.params, returning: true });
303819
303821
  let result = response && response[1] ? response[1] : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.184",
3
+ "version": "1.0.185",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",