@nextage/nx-frame-be 1.0.28 → 1.0.29

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.
@@ -445,7 +445,7 @@ class BaseModel extends events_1.EventEmitter {
445
445
  item = yield this.beforeUpdate(item, context);
446
446
  //const res = await this.mgModel.findByIdAndUpdate(id, { $set: item }, { new: true });
447
447
  //const itemDoc = this.mgModel.build(Object.assign({ id, item }));
448
- const itemDoc = yield this.get(id);
448
+ const itemDoc = yield this.get(id, context);
449
449
  if (!itemDoc)
450
450
  throw new errors_1.AppError('messages.notFound');
451
451
  // complete merge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextage/nx-frame-be",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",