@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.
- package/dist/index.js +3 -1
- 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
|
-
|
|
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;
|