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 build

Kiran Kc30a00996ecb
diff --git a/apps/web/lib/firstpromoter/import-commissions.ts b/apps/web/lib/firstpromoter/import-commissions.ts
index 9f423e09a1..75543a9aa6 100644
--- a/apps/web/lib/firstpromoter/import-commissions.ts
+++ b/apps/web/lib/firstpromoter/import-commissions.ts
@@ -226,7 +226,7 @@ async function createCommission({
// e.g. during the transition period
// since we don't have the Stripe invoiceId from Rewardful, we use the referral's Stripe customer ID
// and check for commissions that were created with the same amount and within a +-1 hour window
- const chargedAt = new Date(commission.amount);
+ const chargedAt = new Date(commission.created_at);
const trackedCommission = await prisma.commission.findFirst({
where: {
programId: program.id,