mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Manually reverted PR 11716 Do not assign all paired items (no-changelog) (#13429)
This commit is contained in:
@@ -7,6 +7,8 @@ import {
|
||||
type INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { generatePairedItemData } from '../../utils/utilities';
|
||||
|
||||
export class ReadBinaryFiles implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
hidden: true,
|
||||
@@ -46,6 +48,7 @@ export class ReadBinaryFiles implements INodeType {
|
||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
const fileSelector = this.getNodeParameter('fileSelector', 0) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0);
|
||||
const pairedItem = generatePairedItemData(this.getInputData().length);
|
||||
|
||||
const files = await glob(fileSelector);
|
||||
|
||||
@@ -57,6 +60,7 @@ export class ReadBinaryFiles implements INodeType {
|
||||
[dataPropertyName]: await this.helpers.prepareBinaryData(stream, filePath),
|
||||
},
|
||||
json: {},
|
||||
pairedItem,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user