rez_core 2.1.50 → 2.1.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.1.50",
3
+ "version": "2.1.51",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -141,6 +141,11 @@ export class SavedFilterService extends EntityServiceImpl {
141
141
  await this.savedFilterRepo.deleteDetailsByCode(entityData.code);
142
142
 
143
143
  await repoService.delete(entityId);
144
+
145
+ return {
146
+ success: true,
147
+ message: `Entity with id ${entityId} deleted successfully.`,
148
+ };
144
149
  }
145
150
 
146
151
  async getDetailsByCode(code: string): Promise<SavedFilterDetail[]> {
@@ -178,11 +178,7 @@ export class EntityController {
178
178
  throw new NotFoundException(`No entity found for id "${id}"`);
179
179
  }
180
180
 
181
- await entityService.deleteEntity(entityType, id);
182
-
183
- return {
184
- success: true,
185
- };
181
+ return await entityService.deleteEntity(entityType, id);
186
182
  }
187
183
 
188
184
  @Post('getFilteredDataWithTabs/:entity_type')
@@ -114,6 +114,11 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
114
114
  }
115
115
 
116
116
  await repoService.delete(entityId);
117
+
118
+ return {
119
+ success: true,
120
+ message: `Entity with id ${entityId} deleted successfully.`,
121
+ };
117
122
  }
118
123
 
119
124
  async findByCode(entityType: string, code: string): Promise<BaseEntity> {