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/dist/module/meta/service/resolver.service.js +4 -2
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +2 -1
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/service/resolver.service.ts +3 -2
- package/src/module/workflow/service/populate-workflow.service.ts +3 -1
package/package.json
CHANGED
|
@@ -226,8 +226,9 @@ export class ResolverService {
|
|
|
226
226
|
return resolvedValues;
|
|
227
227
|
} else {
|
|
228
228
|
const repo =
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
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
|
|