@kipicore/dbcore 1.1.358 → 1.1.359

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.
@@ -45,7 +45,7 @@ const getPresignedUrl = async (bucket, fileStorage, expiresIn = 60 * 60 * 24) =>
45
45
  Bucket: bucket,
46
46
  Key: s3Key,
47
47
  });
48
- const signedUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3, command, { expiresIn }); // in seconds
48
+ const signedUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3, command, { expiresIn: new Date(expiresIn).getSeconds() }); // in seconds
49
49
  return signedUrl;
50
50
  };
51
51
  exports.getPresignedUrl = getPresignedUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.358",
3
+ "version": "1.1.359",
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",