@geniehr/utilities 1.0.11 → 1.0.12
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/secrets/aws.js +0 -2
- package/package.json +1 -1
package/dist/secrets/aws.js
CHANGED
|
@@ -90,7 +90,6 @@ export async function generatePresignedUrl(bucketName, key, idToken, action, exp
|
|
|
90
90
|
if (!userId)
|
|
91
91
|
throw new AppException("User ID not found in token", "E-User-ID-Not-Found");
|
|
92
92
|
const REGION = "ap-south-1";
|
|
93
|
-
const s3 = new S3Client({ region: REGION });
|
|
94
93
|
let command;
|
|
95
94
|
switch (action) {
|
|
96
95
|
case 'put':
|
|
@@ -118,7 +117,6 @@ export async function generatePresignedUrlLegacy(entity, fileName, bucketName, i
|
|
|
118
117
|
if (!userId)
|
|
119
118
|
throw new AppException("User ID not found in token", "E-User-ID-Not-Found");
|
|
120
119
|
const REGION = "ap-south-1";
|
|
121
|
-
const s3 = new S3Client({ region: REGION });
|
|
122
120
|
const key = `${userId}/${entity}/${fileName}`;
|
|
123
121
|
let command;
|
|
124
122
|
switch (action) {
|