@pokash/n8n-nodes-optima-rest-api 1.1.9 → 1.1.11
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.
|
@@ -431,10 +431,10 @@ class OptimaRestApi {
|
|
|
431
431
|
// Extract customers array from response
|
|
432
432
|
if (responseData.Customers && Array.isArray(responseData.Customers)) {
|
|
433
433
|
const customers = responseData.Customers;
|
|
434
|
-
// First, preserve
|
|
434
|
+
// First, preserve binary from input (empty JSON)
|
|
435
435
|
if (items[i].binary) {
|
|
436
436
|
returnData.push({
|
|
437
|
-
json:
|
|
437
|
+
json: {},
|
|
438
438
|
binary: items[i].binary
|
|
439
439
|
});
|
|
440
440
|
}
|
|
@@ -572,10 +572,10 @@ class OptimaRestApi {
|
|
|
572
572
|
// Extract dictionary array from response
|
|
573
573
|
if (responseData[dictConfig.dataKey] && Array.isArray(responseData[dictConfig.dataKey])) {
|
|
574
574
|
const dictItems = responseData[dictConfig.dataKey];
|
|
575
|
-
// First, preserve
|
|
575
|
+
// First, preserve binary from input (empty JSON)
|
|
576
576
|
if (items[i].binary) {
|
|
577
577
|
returnData.push({
|
|
578
|
-
json:
|
|
578
|
+
json: {},
|
|
579
579
|
binary: items[i].binary
|
|
580
580
|
});
|
|
581
581
|
}
|
|
@@ -627,10 +627,10 @@ class OptimaRestApi {
|
|
|
627
627
|
json: true,
|
|
628
628
|
});
|
|
629
629
|
const products = response;
|
|
630
|
-
// First, preserve
|
|
630
|
+
// First, preserve binary from input (empty JSON)
|
|
631
631
|
if (items[i].binary) {
|
|
632
632
|
returnData.push({
|
|
633
|
-
json:
|
|
633
|
+
json: {},
|
|
634
634
|
binary: items[i].binary
|
|
635
635
|
});
|
|
636
636
|
}
|