Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make TTL of data transfer kv value match the session cookie age
  • Loading branch information
regalijan committed Nov 16, 2023
1 parent a681c2a commit 4649b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/data-transfers/create.ts
Expand Up @@ -20,7 +20,7 @@ export async function onRequestPost(context: RequestContext) {

if (has_access) {
await context.env.DATA.put(`datatransfer_${id}`, "{}", {
expirationTtl: 1800,
expirationTtl: 3600,
});

const host = context.request.headers.get("Host") as string;
Expand Down

0 comments on commit 4649b72

Please sign in to comment.