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.

Some cleanup

Kiran Kddc31effe618
diff --git a/apps/web/app/api/links/[linkId]/route.ts b/apps/web/app/api/links/[linkId]/route.ts
index 757cbaaa5f..8794e752d9 100644
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@ -88,7 +88,7 @@ export const PUT = withAuth(async ({ req, headers, workspace, link }) => {
const response = await editLink({
oldDomain: link.domain,
oldKey: link.key,
- updatedLink: processedLink as any, // TODO: fix types
+ updatedLink: processedLink,
});
return NextResponse.json(response, {
diff --git a/apps/web/lib/api/links/create-link.ts b/apps/web/lib/api/links/create-link.ts
index f2116db54f..da90bab676 100644
--- a/apps/web/lib/api/links/create-link.ts
+++ b/apps/web/lib/api/links/create-link.ts
@@ -63,7 +63,7 @@ export async function createLink(link: LinkWithTagIdsProps) {
const uploadedImageUrl = `${process.env.STORAGE_BASE_URL}/images/${response.id}`;
- const effects = await Promise.all([
+ await Promise.all([
// record link in Redis
redis.hset(link.domain, {
[link.key.toLowerCase()]: await formatRedisLink(response),