@etainabl/nodejs-sdk 1.3.135 → 1.3.137
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 +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -5600,7 +5600,6 @@ var IngestHandler = class {
|
|
|
5600
5600
|
if (records.length > 1) throw new Error("Multiple records in SNS event");
|
|
5601
5601
|
const record = records[0];
|
|
5602
5602
|
const message = JSON.parse(record.Sns.Message);
|
|
5603
|
-
console.log("Processing SNS message:", message);
|
|
5604
5603
|
if (this.isS3Event(message)) {
|
|
5605
5604
|
this.event = message;
|
|
5606
5605
|
return this.handleS3Event("S3_SNS_SQS");
|
|
@@ -6111,7 +6110,7 @@ async function handleError({ etnApi, automationRun, error, lambdaSource, account
|
|
|
6111
6110
|
companyId: automationRun.companyId
|
|
6112
6111
|
});
|
|
6113
6112
|
if (automationRun.category === "dataFetcher" && accountId) {
|
|
6114
|
-
await etnApi.updateAccountStatusForAutomation(
|
|
6113
|
+
await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
|
|
6115
6114
|
}
|
|
6116
6115
|
}
|
|
6117
6116
|
async function deleteMessage(queueUrl, receiptHandle, sqsClient) {
|