wrong expiry param
This commit is contained in:
parent
3e84622e51
commit
0a901e458e
|
@ -178,19 +178,7 @@ export async function upload({
|
|||
config.Metadata = metadata
|
||||
}
|
||||
|
||||
/* Playing around here trying to get TTL working */
|
||||
const currentDate = new Date()
|
||||
currentDate.setMinutes(currentDate.getMinutes() + 30)
|
||||
|
||||
return objectStore
|
||||
.upload(config, {
|
||||
params: {
|
||||
Expires: currentDate,
|
||||
Bucket: bucketName,
|
||||
Key: sanitizeKey(filename),
|
||||
},
|
||||
})
|
||||
.promise()
|
||||
return objectStore.upload(config).promise()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue