use getFileKey method

This commit is contained in:
Marc-Roig 2023-03-21 15:27:05 +01:00
parent 456bdcba33
commit 22ab52aa4e

View File

@ -89,8 +89,7 @@ module.exports = {
}
return new Promise((resolve, reject) => {
const path = file.path ? `${file.path}/` : '';
const fileKey = `${path}${file.hash}${file.ext}`;
const fileKey = getFileKey(file);
S3.getSignedUrl(
'getObject',