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.

fix aggregate-clicks

Steven Tey8fe261bb1315
diff --git a/apps/web/app/(ee)/api/cron/aggregate-clicks/route.ts b/apps/web/app/(ee)/api/cron/aggregate-clicks/route.ts
index b7678391cf..6dc81d8ed6 100644
--- a/apps/web/app/(ee)/api/cron/aggregate-clicks/route.ts
+++ b/apps/web/app/(ee)/api/cron/aggregate-clicks/route.ts
@@ -119,7 +119,7 @@ export async function GET(req: Request) {
linkId: id,
quantity: linkClicks,
type: CommissionType.click,
- amount: reward.amount,
+ amount: 0,
earnings: reward.amount * linkClicks,
};
})