1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

Revert TTL on signed urls (#12556)

This commit is contained in:
melohagan 2023-12-12 10:52:14 +00:00 committed by GitHub
parent 0f54f64ad9
commit 9d56039d03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,12 +260,12 @@ export async function listAllObjects(bucketName: string, path: string) {
}
/**
* Generate a presigned url with a default TTL of 36 hours
* Generate a presigned url with a default TTL of 1 hour
*/
export function getPresignedUrl(
bucketName: string,
key: string,
durationSeconds: number = 129600
durationSeconds: number = 3600
) {
const objectStore = ObjectStore(bucketName, { presigning: true })
const params = {