@etainabl/nodejs-sdk 1.3.135 → 1.3.136

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 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(automationRun.automationId, accountId, { status: "error" });
6113
+ await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
6115
6114
  }
6116
6115
  }
6117
6116
  async function deleteMessage(queueUrl, receiptHandle, sqsClient) {