@appxdigital/appx-core 0.1.95 → 0.1.97

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.
@@ -95,7 +95,7 @@ __decorate([
95
95
  ], CoreController.prototype, "create", null);
96
96
  __decorate([
97
97
  (0, common_1.Put)(':id'),
98
- (0, permission_decorator_1.Permission)('update'),
98
+ (0, permission_decorator_1.Permission)('updateMany'),
99
99
  __param(0, (0, common_1.Param)('id')),
100
100
  __param(1, (0, common_1.Body)()),
101
101
  __metadata("design:type", Function),
@@ -96,9 +96,9 @@ let CoreService = class CoreService {
96
96
  */
97
97
  async deleteById(id) {
98
98
  try {
99
- return (await this.modelDelegate.deleteMany({
99
+ return this.modelDelegate.deleteMany({
100
100
  where: this._generateWhereFromIdField(id)
101
- }))[0];
101
+ });
102
102
  }
103
103
  catch (error) {
104
104
  (0, error_handler_1.handleError)(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appxdigital/appx-core",
3
- "version": "0.1.95",
3
+ "version": "0.1.97",
4
4
  "description": "Appx Core is a library that provides a set of tools to help you build your application faster.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",