mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
feat(AWS Lambda Node): Add support for paired items (no-changelog) (#10270)
This commit is contained in:
parent
c8ee852159
commit
d91eb2cdd5
|
@ -195,13 +195,21 @@ export class AwsLambda implements INodeType {
|
|||
|
||||
throw new NodeApiError(this.getNode(), responseData as JsonObject);
|
||||
} else {
|
||||
returnData.push({
|
||||
result: responseData,
|
||||
} as IDataObject);
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({
|
||||
result: responseData,
|
||||
}),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: (error as JsonObject).message });
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: (error as JsonObject).message }),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
continue;
|
||||
}
|
||||
throw error;
|
||||
|
|
Loading…
Reference in a new issue