@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 +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25423,14 +25423,14 @@ function createCsv(data) {
|
|
|
25423
25423
|
});
|
|
25424
25424
|
}
|
|
25425
25425
|
async function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, collectionType }) {
|
|
25426
|
-
if (!process.env.
|
|
25427
|
-
throw new Error("
|
|
25426
|
+
if (!process.env.INGEST_CLEAN_BUCKET) {
|
|
25427
|
+
throw new Error("INGEST_CLEAN_BUCKET environment variable is not set");
|
|
25428
25428
|
}
|
|
25429
25429
|
const { _id: autoRunId, companyId, automationId } = automationRun;
|
|
25430
25430
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
25431
25431
|
const key = `${autoRunId}.csv`;
|
|
25432
25432
|
const command = new PutObjectCommand({
|
|
25433
|
-
Bucket: process.env.
|
|
25433
|
+
Bucket: process.env.INGEST_CLEAN_BUCKET,
|
|
25434
25434
|
Key: key,
|
|
25435
25435
|
Body: Buffer.from(csvContent),
|
|
25436
25436
|
ContentType: "text/csv",
|