mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34: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);
|
throw new NodeApiError(this.getNode(), responseData as JsonObject);
|
||||||
} else {
|
} else {
|
||||||
returnData.push({
|
const executionData = this.helpers.constructExecutionMetaData(
|
||||||
result: responseData,
|
this.helpers.returnJsonArray({
|
||||||
} as IDataObject);
|
result: responseData,
|
||||||
|
}),
|
||||||
|
{ itemData: { item: i } },
|
||||||
|
);
|
||||||
|
returnData.push(...executionData);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (this.continueOnFail(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;
|
continue;
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
|
|
Loading…
Reference in a new issue