Skip to content

Commit

Permalink
update presigned url time
Browse files Browse the repository at this point in the history
  • Loading branch information
shogunpurple committed Nov 27, 2023
1 parent a65b29e commit 5301c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend-core/src/objectStore/objectStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ export async function listAllObjects(bucketName: string, path: string) {
}

/**
* Generate a presigned url with a default TTL of 1 day
* Generate a presigned url with a default TTL of 36 hours
*/
export function getPresignedUrl(
bucketName: string,
key: string,
durationSeconds: number = 86400
durationSeconds: number = 129600
) {
const objectStore = ObjectStore(bucketName, { presigning: true })
const params = {
Expand Down

0 comments on commit 5301c1e

Please sign in to comment.