mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(MongoDB Node): Fix "Maximum call stack size exceeded" error on too many rows (#8530)
This commit is contained in:
committed by
GitHub
parent
d4607381ed
commit
76cdf75fb9
@@ -108,7 +108,6 @@ export class MongoDb implements INodeType {
|
||||
|
||||
const mdb = client.db(database);
|
||||
|
||||
const returnItems: INodeExecutionData[] = [];
|
||||
let responseData: IDataObject | IDataObject[] = [];
|
||||
|
||||
const items = this.getInputData();
|
||||
@@ -369,13 +368,11 @@ export class MongoDb implements INodeType {
|
||||
|
||||
const itemData = generatePairedItemData(items.length);
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
const returnItems = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData },
|
||||
);
|
||||
|
||||
returnItems.push(...executionData);
|
||||
|
||||
return [returnItems];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user