Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
devkiran committed Mar 3, 2025
1 parent 0e177e3 commit a667c03
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apps/web/lib/embed/embed-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit a667c03

Please sign in to comment.