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
Kiran K1f2df3c41dff
diff --git a/apps/web/app/api/partners/analytics/route.ts b/apps/web/app/api/partners/analytics/route.tsindex 86bbd63d86..4ed285f0eb 100644--- a/apps/web/app/api/partners/analytics/route.ts+++ b/apps/web/app/api/partners/analytics/route.ts@@ -8,6 +8,9 @@ import { prisma } from "@dub/prisma";import { format } from "date-fns";import { NextResponse } from "next/server";+// TODO:+// - When interval=all we might not even need to pull from tinybird (get the aggregated data from planetscale)+// GET /api/partners/analytics – get analytics for a partnerexport const GET = withWorkspace(async ({ workspace, searchParams }) => {const {