diff --git a/packages/nodes-base/nodes/MySql/v1/MySqlV1.node.ts b/packages/nodes-base/nodes/MySql/v1/MySqlV1.node.ts index 17923377fb..6209111b67 100644 --- a/packages/nodes-base/nodes/MySql/v1/MySqlV1.node.ts +++ b/packages/nodes-base/nodes/MySql/v1/MySqlV1.node.ts @@ -327,7 +327,7 @@ export class MySqlV1 implements INodeType { { itemData: { item: index } }, ); - collection.push(...executionData); + collection = collection.concat(executionData); return collection; }, diff --git a/packages/nodes-base/nodes/MySql/v2/helpers/utils.ts b/packages/nodes-base/nodes/MySql/v2/helpers/utils.ts index 1e15ce71bb..6e50ae3eb1 100644 --- a/packages/nodes-base/nodes/MySql/v2/helpers/utils.ts +++ b/packages/nodes-base/nodes/MySql/v2/helpers/utils.ts @@ -141,7 +141,7 @@ export function prepareOutput( ) => NodeExecutionWithMetadata[], itemData: IPairedItemData | IPairedItemData[], ) { - const returnData: INodeExecutionData[] = []; + let returnData: INodeExecutionData[] = []; if (options.detailedOutput) { response.forEach((entry, index) => { @@ -154,7 +154,7 @@ export function prepareOutput( itemData, }); - returnData.push(...executionData); + returnData = returnData.concat(executionData); }); } else { response @@ -164,7 +164,7 @@ export function prepareOutput( itemData: Array.isArray(itemData) ? itemData[index] : itemData, }); - returnData.push(...executionData); + returnData = returnData.concat(executionData); }); }