@etainabl/nodejs-sdk 1.3.146 → 1.3.147

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
@@ -9109,14 +9109,14 @@ function createCsv(data) {
9109
9109
  });
9110
9110
  }
9111
9111
  async function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, collectionType }) {
9112
- if (!process.env.IMPORT_READY_BUCKET) {
9113
- throw new Error("IMPORT_READY_BUCKET environment variable is not set");
9112
+ if (!process.env.INGEST_CLEAN_BUCKET) {
9113
+ throw new Error("INGEST_CLEAN_BUCKET environment variable is not set");
9114
9114
  }
9115
9115
  const { _id: autoRunId, companyId, automationId } = automationRun;
9116
9116
  const timestamp = (/* @__PURE__ */ new Date()).toISOString();
9117
9117
  const key = `${autoRunId}.csv`;
9118
9118
  const command = new PutObjectCommand({
9119
- Bucket: process.env.IMPORT_READY_BUCKET,
9119
+ Bucket: process.env.INGEST_CLEAN_BUCKET,
9120
9120
  Key: key,
9121
9121
  Body: Buffer.from(csvContent),
9122
9122
  ContentType: "text/csv",