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.

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.ts
index 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 checks
if (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 needed
if (type === "create" && link.projectId) {
const project = await prisma.project.update({
where: {