@nextage/nx-frame-be 1.0.10 → 1.0.11

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.
@@ -64,7 +64,7 @@ export declare abstract class BaseController<TAttrs, TDoc extends BaseMongoDoc,
64
64
  * @param item
65
65
  * @param context
66
66
  */
67
- protected parseItem(item: TAttrs, context: NxContext): void;
67
+ protected parseItem(item: TAttrs, context: NxContext): Promise<void>;
68
68
  /**
69
69
  *
70
70
  * @param params
@@ -58,6 +58,8 @@ class BaseController {
58
58
  * @param context
59
59
  */
60
60
  parseItem(item, context) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ });
61
63
  }
62
64
  /**
63
65
  *
@@ -75,8 +77,10 @@ class BaseController {
75
77
  * @returns
76
78
  */
77
79
  create(item, context) {
78
- this.parseItem(item, context);
79
- return this.model.create(item, context);
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ yield this.parseItem(item, context);
82
+ return this.model.create(item, context);
83
+ });
80
84
  }
81
85
  /**
82
86
  *
@@ -86,8 +90,10 @@ class BaseController {
86
90
  * @returns
87
91
  */
88
92
  update(id, item, context) {
89
- this.parseItem(item, context);
90
- return this.model.update(id, item, this.mergeUpdate, context);
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ yield this.parseItem(item, context);
95
+ return this.model.update(id, item, this.mergeUpdate, context);
96
+ });
91
97
  }
92
98
  /**
93
99
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextage/nx-frame-be",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",