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.

add comments

Steven Tey00cc92b7816d
diff --git a/apps/web/app/api/track/click/route.ts b/apps/web/app/api/track/click/route.ts
index ade37a6f8f..b94034d4f9 100644
--- a/apps/web/app/api/track/click/route.ts
+++ b/apps/web/app/api/track/click/route.ts
@@ -42,6 +42,7 @@ export const POST = withAxiom(
});
}
+ // might wanna cache this
const { rows } = await conn.execute<{
id: string;
url: string;
diff --git a/apps/web/app/api/track/visit/route.ts b/apps/web/app/api/track/visit/route.ts
index 398b3ac4c3..14fef92473 100644
--- a/apps/web/app/api/track/visit/route.ts
+++ b/apps/web/app/api/track/visit/route.ts
@@ -55,6 +55,7 @@ export const POST = withAxiom(
const linkKey = urlObj.pathname.slice(1);
+ // might wanna cache this
const { rows } = await conn.execute<{
id: string;
url: string;