mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Do not assign all paired items (no-changelog) (#11716)
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
||||
} from 'xlsx';
|
||||
|
||||
import { oldVersionNotice } from '@utils/descriptions';
|
||||
import { flattenObject, generatePairedItemData } from '@utils/utilities';
|
||||
import { flattenObject } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
operationProperty,
|
||||
@@ -58,7 +58,6 @@ export class SpreadsheetFileV1 implements INodeType {
|
||||
|
||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
const items = this.getInputData();
|
||||
const pairedItem = generatePairedItemData(items.length);
|
||||
|
||||
const operation = this.getNodeParameter('operation', 0);
|
||||
|
||||
@@ -230,7 +229,6 @@ export class SpreadsheetFileV1 implements INodeType {
|
||||
const newItem: INodeExecutionData = {
|
||||
json: {},
|
||||
binary: {},
|
||||
pairedItem,
|
||||
};
|
||||
|
||||
let fileName = `spreadsheet.${fileFormat}`;
|
||||
@@ -247,7 +245,6 @@ export class SpreadsheetFileV1 implements INodeType {
|
||||
json: {
|
||||
error: error.message,
|
||||
},
|
||||
pairedItem,
|
||||
});
|
||||
} else {
|
||||
throw error;
|
||||
|
||||
@@ -2,7 +2,6 @@ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n
|
||||
|
||||
import type { JsonToSpreadsheetBinaryFormat, JsonToSpreadsheetBinaryOptions } from '@utils/binary';
|
||||
import { convertJsonToSpreadsheetBinary } from '@utils/binary';
|
||||
import { generatePairedItemData } from '@utils/utilities';
|
||||
|
||||
import { toFileOptions, toFileProperties } from '../description';
|
||||
|
||||
@@ -11,8 +10,6 @@ export const description: INodeProperties[] = [...toFileProperties, toFileOption
|
||||
export async function execute(this: IExecuteFunctions, items: INodeExecutionData[]) {
|
||||
const returnData: INodeExecutionData[] = [];
|
||||
|
||||
const pairedItem = generatePairedItemData(items.length);
|
||||
|
||||
try {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0);
|
||||
const fileFormat = this.getNodeParameter('fileFormat', 0) as JsonToSpreadsheetBinaryFormat;
|
||||
@@ -25,7 +22,6 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
binary: {
|
||||
[binaryPropertyName]: binaryData,
|
||||
},
|
||||
pairedItem,
|
||||
};
|
||||
|
||||
returnData.push(newItem);
|
||||
@@ -35,7 +31,6 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
json: {
|
||||
error: error.message,
|
||||
},
|
||||
pairedItem,
|
||||
});
|
||||
} else {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user