@eka-care/ekascribe-ts-sdk 1.5.45 → 1.5.46
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.
|
@@ -4,8 +4,10 @@ import s3RetryWrapper from './s3-retry-wrapper';
|
|
|
4
4
|
import { GET_S3_BUCKET_NAME } from '../fetch-client/helper';
|
|
5
5
|
const pushFileToS3 = async ({ fileBlob, fileName, txnID, businessID, is_shared_worker = false, }) => {
|
|
6
6
|
try {
|
|
7
|
+
const s3BucketName = GET_S3_BUCKET_NAME();
|
|
8
|
+
console.log('s3BucketName', s3BucketName);
|
|
7
9
|
const requestBody = {
|
|
8
|
-
Bucket:
|
|
10
|
+
Bucket: s3BucketName,
|
|
9
11
|
Key: fileName,
|
|
10
12
|
Body: fileBlob,
|
|
11
13
|
Metadata: {
|
|
@@ -30,6 +30,7 @@ const setEnv = ({ env, clientId, auth_token, }) => {
|
|
|
30
30
|
auth = auth_token;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
+
console.log(envVar, 'dev');
|
|
33
34
|
export const GET_S3_BUCKET_NAME = () => envVar === PROD ? s3_prod_bucket_name : s3_dev_bucket_name;
|
|
34
35
|
export const GET_CLIENT_ID = () => client_id;
|
|
35
36
|
export const GET_AUTH_TOKEN = () => auth;
|