The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix build
Kiran Kffd04b82f699
diff --git a/apps/web/app/api/cron/aggregate-clicks/route.ts b/apps/web/app/api/cron/aggregate-clicks/route.tsindex 6d35e1f8f2..c493afa9b3 100644--- a/apps/web/app/api/cron/aggregate-clicks/route.ts+++ b/apps/web/app/api/cron/aggregate-clicks/route.ts@@ -9,6 +9,7 @@ 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// This route is used aggregate clicks events on daily basis for Program links and add to the Earnings table// Runs every day at 00:00 (0 0 * * *)@@ -72,8 +73,8 @@ export async function GET(req: Request) {programId: programId!,partnerId: partnerId!,type: EventType.click,- quantity: 4,- amount: 1000,+ quantity,+ amount: 0,};}),);diff --git a/apps/web/app/app.dub.co/embed/inline/sales.tsx b/apps/web/app/app.dub.co/embed/inline/sales.tsxindex 5c8f7ad316..16e5695c8e 100644--- a/apps/web/app/app.dub.co/embed/inline/sales.tsx+++ b/apps/web/app/app.dub.co/embed/inline/sales.tsx@@ -29,7 +29,7 @@ export function EmbedSales({ salesCount }: { salesCount: number }) {id: "customer",header: "Customer",cell: ({ row }) => {- return row.original.customer.email;+ return row.original.customer ? row.original.customer.email : "-";},},{