@ccci/micro-server 1.0.184 → 1.0.186
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 +4 -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") {
|
|
@@ -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;
|