Skip to content

Commit

Permalink
chore: increase expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
elianiva committed Feb 10, 2024
1 parent ca2f0b0 commit 328166c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/shortener.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 328166c

Please sign in to comment.