rez_core 5.0.310 → 5.0.312

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.310",
3
+ "version": "5.0.312",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -70,8 +70,6 @@ export class FilterEvaluatorService {
70
70
  entity_type: entityType,
71
71
  savedFilterCode: criteriaFilterCode,
72
72
  queryParams: { id: entityId },
73
- page: 1,
74
- size: 1,
75
73
  loggedInUser: loggedInUser || { organization_id: null },
76
74
  } as any;
77
75
 
@@ -129,12 +129,20 @@ export class ScheduleHandlerService {
129
129
  // Parse the workflow event JSON again to get filter/action info
130
130
  const filter = workflow.criteria_filter_code;
131
131
  const mappedEntityType = workflow.mapped_entity_type;
132
+ const applicableEntityType = workflow.applicable_entity_type;
132
133
 
133
134
  const matchedEntities: any[] = [];
134
135
 
135
136
  // 🔁 Step 2A: Evaluate criteria for each record
136
137
  for (const record of results) {
137
- const entityIdToUse = record.id; // assuming 'id' column in the table
138
+ let entityIdToUse;
139
+
140
+ if (mappedEntityType == applicableEntityType) {
141
+ entityIdToUse = record.id;
142
+ } else {
143
+ entityIdToUse = record.parent_id;
144
+ }
145
+ // const entityIdToUse = record.id; // assuming 'id' column in the table
138
146
 
139
147
  const executionUser = {
140
148
  organization_id: jobData.organization_id,