feat(AWS Lambda Node): Add support for paired items (no-changelog) (#10270)

This commit is contained in:
Jon 2024-07-31 16:19:25 +01:00 committed by GitHub
parent c8ee852159
commit d91eb2cdd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;