mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Missing pairing info (#7326)
Github issue / Community forum post (link here to close automatically):
This commit is contained in:
@@ -164,7 +164,7 @@ export class SetV1 implements INodeType {
|
||||
|
||||
const newItem: INodeExecutionData = {
|
||||
json: {},
|
||||
pairedItem: item.pairedItem,
|
||||
pairedItem: { item: itemIndex },
|
||||
};
|
||||
|
||||
if (!keepOnlySet) {
|
||||
|
||||
@@ -52,7 +52,7 @@ export function composeReturnItem(
|
||||
) {
|
||||
const newItem: INodeExecutionData = {
|
||||
json: {},
|
||||
pairedItem: inputItem.pairedItem,
|
||||
pairedItem: { item: itemIndex },
|
||||
};
|
||||
|
||||
if (options.includeBinary && inputItem.binary !== undefined) {
|
||||
|
||||
@@ -204,7 +204,7 @@ export async function execute(
|
||||
return composeReturnItem.call(this, i, item, newData, options);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
return { json: { error: (error as Error).message } };
|
||||
return { json: { error: (error as Error).message, pairedItem: { item: i } } };
|
||||
}
|
||||
throw new NodeOperationError(this.getNode(), error as Error, {
|
||||
itemIndex: i,
|
||||
|
||||
@@ -59,7 +59,7 @@ export async function execute(
|
||||
return composeReturnItem.call(this, i, item, newData, options);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
return { json: { error: (error as Error).message } };
|
||||
return { json: { error: (error as Error).message }, pairedItem: { item: i } };
|
||||
}
|
||||
throw new NodeOperationError(node, error as Error, {
|
||||
itemIndex: i,
|
||||
|
||||
Reference in New Issue
Block a user