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.

remove project usage updates for importer

Steven Teyd0f9468902c6
diff --git a/apps/web/lib/rewardful/import-commissions.ts b/apps/web/lib/rewardful/import-commissions.ts
index 43ed0b21be..80d2f7d5e0 100644
--- a/apps/web/lib/rewardful/import-commissions.ts
+++ b/apps/web/lib/rewardful/import-commissions.ts
@@ -227,13 +227,5 @@ async function createCommission({
saleAmount: { increment: sale.sale_amount_cents },
},
}),
-
- prisma.project.update({
- where: { id: program.workspaceId },
- data: {
- usage: { increment: 1 },
- // salesUsage: { increment: sale.sale_amount_cents },
- },
- }),
]);
}
diff --git a/apps/web/lib/rewardful/import-referrals.ts b/apps/web/lib/rewardful/import-referrals.ts
index b37650ba57..9e817ae05e 100644
--- a/apps/web/lib/rewardful/import-referrals.ts
+++ b/apps/web/lib/rewardful/import-referrals.ts
@@ -201,10 +201,5 @@ async function createReferral({
where: { id: link.id },
data: { leads: { increment: 1 } },
}),
-
- prisma.project.update({
- where: { id: workspace.id },
- data: { usage: { increment: 1 } },
- }),
]);
}