mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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:
@@ -492,10 +492,12 @@ export class NotionV2 implements INodeType {
|
||||
if (simple === true) {
|
||||
responseData = simplifyObjects(responseData, download);
|
||||
}
|
||||
returnData.push.apply(
|
||||
returnData,
|
||||
Array.isArray(responseData) ? responseData : [responseData],
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -567,7 +569,12 @@ export class NotionV2 implements INodeType {
|
||||
if (simple === true) {
|
||||
responseData = simplifyObjects(responseData, download);
|
||||
}
|
||||
returnData.push.apply(returnData, responseData);
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -591,10 +598,12 @@ export class NotionV2 implements INodeType {
|
||||
if (simple === true) {
|
||||
responseData = simplifyObjects(responseData, false);
|
||||
}
|
||||
returnData.push.apply(
|
||||
returnData,
|
||||
Array.isArray(responseData) ? responseData : [responseData],
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user