@ccci/micro-server 1.0.131 → 1.0.133
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 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -251574,7 +251574,8 @@ class BaseController {
|
|
|
251574
251574
|
data.updatedById = (req.user || {}).id || null;
|
|
251575
251575
|
let originalData = await this._model?.findByPk(data.id);
|
|
251576
251576
|
let response4 = await this._model?.update(data, { where: req.params, returning: true });
|
|
251577
|
-
|
|
251577
|
+
let result = response4 && response4[1] ? response4[1] : undefined;
|
|
251578
|
+
await this.afterUpdate(req, result, originalData);
|
|
251578
251579
|
return ResponseHelper(response4);
|
|
251579
251580
|
} catch (error) {
|
|
251580
251581
|
Logger.error(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccci/micro-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.133",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"dist/*/*.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"bun": "1.1.0",
|
|
39
38
|
"cors": "^2.8.5",
|
|
40
39
|
"express": "^4.19.2",
|
|
41
40
|
"express-fileupload": "^1.5.0",
|