mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-24 21:09:20 +00:00
fix: remove duplicate wrap of paired item data (#4001)
* fix: remove duplicate wrap of paired item data and adding where missing for other nodes
This commit is contained in:
@@ -404,10 +404,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/accounts', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// account: update
|
||||
@@ -501,10 +497,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/contacts', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// contact: update
|
||||
@@ -597,10 +589,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/deals', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// deal: update
|
||||
@@ -699,10 +687,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/invoices', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// invoice: update
|
||||
@@ -798,10 +782,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/leads', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'getFields') {
|
||||
// ----------------------------------------
|
||||
// lead: getFields
|
||||
@@ -908,10 +888,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/products', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// product: update
|
||||
@@ -1011,10 +987,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/purchase_orders', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// purchaseOrder: update
|
||||
@@ -1115,10 +1087,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/quotes', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// quote: update
|
||||
@@ -1218,10 +1186,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/sales_orders', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// salesOrder: update
|
||||
@@ -1319,10 +1283,6 @@ export class ZohoCrm implements INodeType {
|
||||
addGetAllFilterOptions(qs, options);
|
||||
|
||||
responseData = await handleListing.call(this, 'GET', '/vendors', {}, qs);
|
||||
responseData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
} else if (operation === 'update') {
|
||||
// ----------------------------------------
|
||||
// vendor: update
|
||||
|
||||
Reference in New Issue
Block a user