@ccci/micro-server 1.0.186 → 1.0.187
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -303817,7 +303817,7 @@ class BaseController {
|
|
|
303817
303817
|
data.updatedById = (req.user || {}).id || null;
|
|
303818
303818
|
}
|
|
303819
303819
|
let originalData = await this._model?.findByPk(data.id);
|
|
303820
|
-
let response = await this._model?.update(data, { where: req.params, returning: true });
|
|
303820
|
+
let response = await this._model?.update(data, { where: req.params, returning: true, individualHooks: true });
|
|
303821
303821
|
let result = response && response[1] ? response[1] : undefined;
|
|
303822
303822
|
await this.afterUpdate(req, result, originalData);
|
|
303823
303823
|
return ResponseHelper(response);
|