The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
disable aggregate-clicks cron for now
Steven Teyd472fac1a4b0
diff --git a/apps/web/app/api/cron/aggregate-clicks/route.ts b/apps/web/app/api/cron/aggregate-clicks/route.tsindex 8d23374689..9cbf956478 100644--- a/apps/web/app/api/cron/aggregate-clicks/route.ts+++ b/apps/web/app/api/cron/aggregate-clicks/route.ts@@ -7,9 +7,16 @@ import { NextResponse } from "next/server";export const dynamic = "force-dynamic";-// TODO:-// Let's use a cron job (similar to how we do it for usage cron) to account for the future where we have a lot of links to process-// Check if CPC is enabled for the link+/**+ * TODO:+ * - Use a cron job (similar to how we do it for usage cron) to account for the future where we have a lot of links to process+ * - Might be better to read directly from the Reward table and fetch relevant links from there+ * - Once these are ready, we'll add back the cron job in vercel.json+ {+ "path": "/api/cron/aggregate-clicks",+ "schedule": "0 0 * * *"+ },+ */// This route is used aggregate clicks events on daily basis for Program links and add to the Commission table// Runs every day at 00:00 (0 0 * * *)diff --git a/apps/web/vercel.json b/apps/web/vercel.jsonindex d3091c3b72..36931d194c 100644--- a/apps/web/vercel.json+++ b/apps/web/vercel.json@@ -28,10 +28,6 @@"path": "/api/cron/payouts/sales","schedule": "0 * * * *"},- {- "path": "/api/cron/aggregate-clicks",- "schedule": "0 0 * * *"- },{"path": "/api/cron/trigger-withdrawal","schedule": "0 0,12 * * *"