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 commission calculation for click

Kiran K60305ba38674
diff --git a/apps/web/app/api/cron/aggregate-clicks/route.ts b/apps/web/app/api/cron/aggregate-clicks/route.ts
index f29b53de64..a26da84bba 100644
--- a/apps/web/app/api/cron/aggregate-clicks/route.ts
+++ b/apps/web/app/api/cron/aggregate-clicks/route.ts
@@ -125,7 +125,7 @@ export async function GET(req: Request) {
type: "click",
quantity,
amount: 0,
- earnings: reward.amount,
+ earnings: reward.amount * quantity,
},
});