mirror of
https://github.com/rikkaneko/paste.git
synced 2025-06-06 16:45:41 +00:00
Merge branch 'main' of github.com:rikkaneko/paste
This commit is contained in:
commit
eeffb6c89d
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ export default {
|
|||
};
|
||||
|
||||
// Key will be expired after 28 day if unmodified
|
||||
ctx.waitUntil(env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), {expirationTtl: 100800}));
|
||||
ctx.waitUntil(env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), {expirationTtl: 2419200}));
|
||||
return new Response(await get_paste_info(uuid, descriptor, env, need_qrcode));
|
||||
} else {
|
||||
return new Response('Unable to upload the paste.\n', {
|
||||
|
@ -337,7 +337,7 @@ export default {
|
|||
});
|
||||
}
|
||||
descriptor.read_count_remain--;
|
||||
ctx.waitUntil(env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), {expirationTtl: 100800}));
|
||||
ctx.waitUntil(env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), {expirationTtl: 2419200}));
|
||||
}
|
||||
|
||||
// Enable CF cache for authorized request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue