wrong expiry param

This commit is contained in:
Peter Clement 2024-03-13 16:12:48 +00:00
parent 3e84622e51
commit 0a901e458e
1 changed files with 1 additions and 13 deletions

View File

@ -178,19 +178,7 @@ export async function upload({
config.Metadata = metadata config.Metadata = metadata
} }
/* Playing around here trying to get TTL working */ return objectStore.upload(config).promise()
const currentDate = new Date()
currentDate.setMinutes(currentDate.getMinutes() + 30)
return objectStore
.upload(config, {
params: {
Expires: currentDate,
Bucket: bucketName,
Key: sanitizeKey(filename),
},
})
.promise()
} }
/** /**