@ccci/micro-server 1.0.185 → 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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -297526,7 +297526,7 @@ function decode(val2) {
|
|
|
297526
297526
|
}
|
|
297527
297527
|
|
|
297528
297528
|
// src/utils/RouterFactory.ts
|
|
297529
|
-
var UNSECURED_DIR = ["dev", "public"];
|
|
297529
|
+
var UNSECURED_DIR = ["dev", "public", "public-v2.0"];
|
|
297530
297530
|
|
|
297531
297531
|
class RouterFactory {
|
|
297532
297532
|
static async init(app, pathName, folderName = "routes", context = "api") {
|
|
@@ -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);
|