Skip to content

Commit

Permalink
fix: stuff borked idk why
Browse files Browse the repository at this point in the history
  • Loading branch information
elianiva committed Nov 24, 2024
1 parent abacbf1 commit e34b58a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions services/shortener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ export async function customiseShortenedUrl(original: string, customised: string
// trim customised url
const customisedKey = ["url", customised.trim()];

const existingCustomised = await kv.get(customisedKey);
if (existingCustomised) {
return null;
}

await kv
.atomic()
.check(originalShortened)
Expand Down

0 comments on commit e34b58a

Please sign in to comment.