rez_core 5.0.63 → 5.0.66

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.63",
3
+ "version": "5.0.66",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -226,8 +226,9 @@ export class ResolverService {
226
226
  return resolvedValues;
227
227
  } else {
228
228
  const repo =
229
- await this.reflectionHelper.getRepoService('ListMasterItems');
230
- let item = repo.findOne({
229
+ this.reflectionHelper.getRepoService('ListMasterItems');
230
+ if (typeof rawValue !== 'number') return rawValue;
231
+ let item = await repo.findOne({
231
232
  where: {
232
233
  id: Number(rawValue),
233
234
  organization_id: loggedInUser.organization_id,
@@ -157,12 +157,14 @@ export class PopulateWorkflowService extends EntityServiceImpl {
157
157
 
158
158
  if (!workflowLevelMappingRepo) continue;
159
159
 
160
- await workflowLevelMappingRepo.create({
160
+ const newMapping = workflowLevelMappingRepo.create({
161
161
  workflow_id: Number(newWf.id),
162
162
  mapped_level_id: organization_id.toString(),
163
163
  mapped_level_type: 'ORG',
164
164
  });
165
165
 
166
+ await workflowLevelMappingRepo.save(newMapping);
167
+
166
168
  workflowIdMap[id] = newWf.id;
167
169
  }
168
170