@ccci/micro-server 1.0.215 → 1.0.216
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -304305,12 +304305,11 @@ class BaseController {
|
|
|
304305
304305
|
try {
|
|
304306
304306
|
await this.beforeCreate(req);
|
|
304307
304307
|
let data = req.body;
|
|
304308
|
+
console.log("req.user && !(req.query.disableDefaultId)", req.user && !req.query.disableDefaultId);
|
|
304308
304309
|
if (req.user && !req.query.disableDefaultId) {
|
|
304309
304310
|
data.createdById = req.user?.userId ?? req.user.id ?? req.user?._id ?? req.user?.user?.id ?? req.user?.user?._id;
|
|
304310
304311
|
}
|
|
304311
|
-
console.log("BaseController.create :>> ", data);
|
|
304312
304312
|
let response4 = await this._model?.create(data);
|
|
304313
|
-
console.log("BaseController.create :>> ", response4);
|
|
304314
304313
|
await this.afterCreate(req, response4);
|
|
304315
304314
|
return ResponseHelper(response4);
|
|
304316
304315
|
} catch (error) {
|