rez_core 5.0.200 → 5.0.202

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": "5.0.200",
3
+ "version": "5.0.202",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -78,31 +78,31 @@ export class ResolverService {
78
78
  resolvedEntityData[field] = resolvedValues;
79
79
  } else {
80
80
  // if we r resolving a ListMaster then we get the name of the item from ListMasterItems table directly
81
- if (attr.data_source_type === 'master') {
82
- const listMasterItemsRepo =
83
- this.reflectionHelper.getRepoService('ListMasterItems');
84
- const item = await listMasterItemsRepo.findOne({
85
- where: {
86
- id: Number(codeValue),
87
- },
88
- select: ['name'],
89
- });
90
- resolvedEntityData[field] = item?.name ?? codeValue;
91
- } else {
92
- // ENTITY handling here
93
- const options = await this.listMasterService.getDropdownOptions(
94
- type,
95
- params,
96
- undefined,
97
- loggedInUser,
98
- );
99
- const item = options.find(
100
- (opt) => opt.value == codeValue || opt.code == codeValue,
101
- );
102
- resolvedEntityData[field] = Array.isArray(item)
103
- ? (item?.[attr.data_source_attribute] ?? codeValue)
104
- : (item?.label ?? codeValue);
105
- }
81
+ // if (attr.data_source_type === 'master') {
82
+ // const listMasterItemsRepo =
83
+ // this.reflectionHelper.getRepoService('ListMasterItems');
84
+ // const item = await listMasterItemsRepo.findOne({
85
+ // where: {
86
+ // id: codeValue,
87
+ // },
88
+ // select: ['name'],
89
+ // });
90
+ // resolvedEntityData[field] = item?.name ?? codeValue;
91
+ // } else {
92
+ // ENTITY handling here
93
+ const options = await this.listMasterService.getDropdownOptions(
94
+ type,
95
+ params,
96
+ undefined,
97
+ loggedInUser,
98
+ );
99
+ const item = options.find(
100
+ (opt) => opt.value == codeValue || opt.code == codeValue,
101
+ );
102
+ resolvedEntityData[field] = Array.isArray(item)
103
+ ? (item?.[attr.data_source_attribute] ?? codeValue)
104
+ : (item?.label ?? codeValue);
105
+ // }
106
106
  }
107
107
  }
108
108