From 328166c56a39b35403a910a18562925c30377859 Mon Sep 17 00:00:00 2001 From: elianiva Date: Sat, 10 Feb 2024 21:58:57 +0700 Subject: [PATCH] chore: increase expiry --- services/shortener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/shortener.ts b/services/shortener.ts index 098f7a6..8fbfb19 100644 --- a/services/shortener.ts +++ b/services/shortener.ts @@ -1,7 +1,7 @@ import { nanoid } from 'nanoid'; const kv = await Deno.openKv(); -const KEY_EXPIRY = 14 * 24 * 60 * 60; // 14 days +const KEY_EXPIRY = 90 * 24 * 60 * 60; // 90 days export async function shortenUrl(url: string) { const token = nanoid(4);