The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Steven Teyfab38413e98d
diff --git a/apps/web/app/api/cron/links/event/route.ts b/apps/web/app/api/cron/links/event/route.tsindex d7ecfe5389..f172eddbed 100644--- a/apps/web/app/api/cron/links/event/route.ts+++ b/apps/web/app/api/cron/links/event/route.ts@@ -37,8 +37,6 @@ export async function POST(req: Request) {return new Response("Link not found", { status: 200 });}- console.log(`Received ${type} event for link ${linkId}`);-// if the link is a dub.sh link, do some checksif (link.domain === "dub.sh") {const invalidFavicon = await fetch(@@ -66,7 +64,7 @@ export async function POST(req: Request) {});}- // increment links usage+ // increment links usage and send alert if neededif (type === "create" && link.projectId) {const project = await prisma.project.update({where: {