rez_core 5.0.176 → 5.0.177

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.176",
3
+ "version": "5.0.177",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -139,7 +139,7 @@ export class EntityTableService {
139
139
  if (loggedInUser.id) {
140
140
  entityTableDto.saved_filter =
141
141
  await this.savedFilterRepoService.getSavedFiltersByUserIdAndEntityType(
142
- loggedInUser.id,
142
+ loggedInUser,
143
143
  entityTable.list_type,
144
144
  );
145
145
  }
@@ -214,9 +214,10 @@ export class WorkflowAutomationService extends EntityServiceImpl {
214
214
  where: { workflow_automation_id: workflow.id },
215
215
  });
216
216
 
217
- const existingMap = new Map(
218
- existingActions.map((a) => [a.action_category_id, a]),
219
- );
217
+ // const existingMap = new Map(
218
+ // existingActions.map((a) => [a.action_category_id, a]),
219
+ // );
220
+ const existingMap = new Map(existingActions.map((a) => [a.id, a]));
220
221
 
221
222
  // 2. Upsert actions
222
223
  for (const a of action) {
@@ -260,9 +261,14 @@ export class WorkflowAutomationService extends EntityServiceImpl {
260
261
  this.logger.log(`Created new action: ${a.actionCategory}`);
261
262
  }
262
263
  }
263
- const incomingCategories = action.map((a) => a.actionCategory);
264
+ // const incomingCategories = action.map((a) => a.actionCategory);
265
+ // const toDelete = existingActions.filter(
266
+ // (a) => !incomingCategories.includes(a.action_category_id),
267
+ // );
268
+
269
+ const incomingIds = action.map((a) => a.id).filter((id) => id);
264
270
  const toDelete = existingActions.filter(
265
- (a) => !incomingCategories.includes(a.action_category_id),
271
+ (a) => !incomingIds.includes(a.id),
266
272
  );
267
273
 
268
274
  if (toDelete.length) {