multicloud_rule_manager 1.1.81 → 1.1.83

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.
@@ -101,6 +101,12 @@ export default {
101
101
  "products_structure"
102
102
  );
103
103
 
104
+ const productStructureRootId = products.find(
105
+ (p) => p.product_id === rootGuid
106
+ );
107
+
108
+ console.log('rootGuid: '+rootGuid);
109
+ console.log('productStructureRootId: '+productStructureRootId);
104
110
  console.log(`🌳 Totale elementi structure: ${structure.length}`);
105
111
 
106
112
  // =========================
@@ -111,11 +117,13 @@ export default {
111
117
  (a.name || "").localeCompare(b.name || "")
112
118
  );
113
119
 
120
+
121
+
114
122
  const getCategories = () =>
115
123
  sortByName(
116
124
  structure.filter(
117
125
  (e) =>
118
- e.parent_guid === rootGuid &&
126
+ e.parent_guid === productStructureRootId &&
119
127
  e.type === "category"
120
128
  )
121
129
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.1.81",
3
+ "version": "1.1.83",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",