@etainabl/nodejs-sdk 1.3.152 → 1.3.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -9232,12 +9232,14 @@ async function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, col
|
|
|
9232
9232
|
throw new Error(error);
|
|
9233
9233
|
}
|
|
9234
9234
|
}
|
|
9235
|
-
async function handleError({ etnApi, automationRun, error, lambdaSource, accountId, automation, messageId }) {
|
|
9235
|
+
async function handleError({ context, etnApi, automationRun, error, lambdaSource, accountId, automation, messageId }) {
|
|
9236
9236
|
await etnApi.createAutomationRunLog(automationRun._id, {
|
|
9237
9237
|
message: error.message,
|
|
9238
9238
|
status: "error",
|
|
9239
9239
|
lambdaSource,
|
|
9240
|
-
lambdaMessageId: messageId
|
|
9240
|
+
lambdaMessageId: messageId,
|
|
9241
|
+
lambdaLogStreamName: context.logStreamName,
|
|
9242
|
+
lambdaRequestId: context.awsRequestId
|
|
9241
9243
|
});
|
|
9242
9244
|
const { description, service } = automation;
|
|
9243
9245
|
const message = automationRun.source?.fileName ? `Automation "${description || service}" FAILED while processing file: ${automationRun.source.fileName}` : `Automation "${description}" FAILED.`;
|