simplified router.ts

This commit is contained in:
Christoph Dyllick-Brenzinger 2024-07-17 15:37:30 +02:00
parent 7d4f152518
commit 861691cf63

View file

@ -33,9 +33,12 @@ export async function router(this: IExecuteFunctions): Promise<INodeExecutionDat
}
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
{ itemData: { item: i } },
responseData as INodeExecutionData[],
{
itemData: { item: i },
},
);
operationResult.push(...executionData);
} catch (err) {
if (this.continueOnFail()) {