@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
- return response.map((c) => ({
375
- name: c.title || c.name || c.id,
376
- value: c.id
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
- return response.map((u) => ({
398
- name: u.name || u.email || u.id,
399
- value: u.id
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 [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectorx/n8n-nodes-cortex",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "n8n nodes for Cortex API",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"