rez_core 2.0.71 → 2.0.72

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.0.71",
3
+ "version": "2.0.72",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -14,7 +14,7 @@ export class SavedFilterService extends EntityServiceImpl {
14
14
  }
15
15
 
16
16
  async createEntity(
17
- entityData: BaseEntity,
17
+ entityData: any,
18
18
  loggedInUser: UserData | null,
19
19
  ): Promise<BaseEntity> {
20
20
  const master = entityData as SavedFilterMaster;
@@ -29,6 +29,7 @@ export class SavedFilterService extends EntityServiceImpl {
29
29
  throw new BadRequestException('Saved filter name already exists.');
30
30
  }
31
31
 
32
+ entityData.user_id = loggedInUser?.id ?? null;
32
33
  // Save the master record without code
33
34
  const savedMaster = await super.createEntity(master, loggedInUser);
34
35
 
@@ -36,6 +36,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
36
36
  manager?: EntityManager | null,
37
37
  appcode?: string,
38
38
  ) {
39
+
39
40
  if (!entityData.entity_type) {
40
41
  throw new BadRequestException(`EntityType is missing`);
41
42
  }