@kipicore/dbcore 1.1.397 → 1.1.398

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.
@@ -38,13 +38,13 @@ exports.uploadFileToS3 = uploadFileToS3;
38
38
  const getPresignedUrl = async (bucket, fileStorage, expiresIn = 60 * 60 * 24) => {
39
39
  // if (fileStorage.filePath) return fileStorage.filePath;
40
40
  const s3 = await configs_1.awsClient.s3();
41
- expiresIn = await configs_1.awsClient.expiry();
41
+ // expiresIn = await awsClient.expiry();
42
42
  const s3Key = `${fileStorage.storagePath}/${fileStorage.storageFileName}`;
43
43
  const command = new client_s3_1.GetObjectCommand({
44
44
  Bucket: bucket,
45
45
  Key: s3Key,
46
46
  });
47
- const signedUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3, command, { expiresIn: new Date(expiresIn).getSeconds() }); // in seconds
47
+ const signedUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3, command, { expiresIn }); // in seconds
48
48
  return signedUrl;
49
49
  };
50
50
  exports.getPresignedUrl = getPresignedUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.397",
3
+ "version": "1.1.398",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",