@etainabl/nodejs-sdk 1.3.137 → 1.3.139

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
@@ -6109,7 +6109,7 @@ async function handleError({ etnApi, automationRun, error, lambdaSource, account
6109
6109
  userSub: lambdaSource,
6110
6110
  companyId: automationRun.companyId
6111
6111
  });
6112
- if (automationRun.category === "dataFetcher" && accountId) {
6112
+ if (automationRun.category === "account" && accountId) {
6113
6113
  await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
6114
6114
  }
6115
6115
  }