@connectorx/n8n-nodes-cortex 0.1.16 → 0.1.17
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.
|
@@ -371,10 +371,11 @@ class Cortex {
|
|
|
371
371
|
};
|
|
372
372
|
try {
|
|
373
373
|
const response = await this.helpers.request(options);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
374
|
+
const data = Array.isArray(response) ? response : (response.data || response.columns || []);
|
|
375
|
+
return data.map((c) => ({
|
|
376
|
+
name: c.title || c.name || c.id || c.column_id || 'Unknown Column',
|
|
377
|
+
value: c.id || c.column_id
|
|
378
|
+
})).filter(c => c.value);
|
|
378
379
|
}
|
|
379
380
|
catch (error) {
|
|
380
381
|
return [];
|
|
@@ -394,10 +395,11 @@ class Cortex {
|
|
|
394
395
|
};
|
|
395
396
|
try {
|
|
396
397
|
const response = await this.helpers.request(options);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
const data = Array.isArray(response) ? response : (response.data || response.users || []);
|
|
399
|
+
return data.map((u) => ({
|
|
400
|
+
name: u.name || u.email || u.id || u.user_id || 'Unknown User',
|
|
401
|
+
value: u.id || u.user_id
|
|
402
|
+
})).filter(u => u.value);
|
|
401
403
|
}
|
|
402
404
|
catch (error) {
|
|
403
405
|
return [];
|