@kipicore/dbcore 1.1.393 → 1.1.394
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.
|
@@ -36,8 +36,7 @@ const uploadFileToS3 = async (localFilePath, s3Key, s3Bucket = env_1.ENV_VARIABL
|
|
|
36
36
|
};
|
|
37
37
|
exports.uploadFileToS3 = uploadFileToS3;
|
|
38
38
|
const getPresignedUrl = async (bucket, fileStorage, expiresIn = 60 * 60 * 24) => {
|
|
39
|
-
if (fileStorage.filePath)
|
|
40
|
-
return fileStorage.filePath;
|
|
39
|
+
// if (fileStorage.filePath) return fileStorage.filePath;
|
|
41
40
|
const s3 = await configs_1.awsClient.s3();
|
|
42
41
|
expiresIn = await configs_1.awsClient.expiry();
|
|
43
42
|
const s3Key = `${fileStorage.storagePath}/${fileStorage.storageFileName}`;
|
package/package.json
CHANGED