@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.
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geniehr/utilities",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/Genie-HR/ghr-utilities#readme",
6
6
  "bugs": {