Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

remove unused

Kiran Ka667c03a359a
diff --git a/apps/web/lib/embed/embed-token.ts b/apps/web/lib/embed/embed-token.ts
index 2e7721840f..1ba40bfabd 100644
--- a/apps/web/lib/embed/embed-token.ts
+++ b/apps/web/lib/embed/embed-token.ts
@@ -32,18 +32,6 @@ class EmbedToken {
async get(token: string) {
return await redis.get<EmbedTokenProps>(token);
}
-
- async update(token: string, props: EmbedTokenProps) {
- const existingProps = await this.get(token);
-
- if (!existingProps) {
- throw new Error("Token not found.");
- }
-
- await redis.set(token, JSON.stringify(props), {
- ex: EMBED_PUBLIC_TOKEN_EXPIRY,
- });
- }
}
export const embedToken = new EmbedToken();