The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update utils.ts
Kiran K6e283bd704fc
diff --git a/apps/web/app/api/stripe/integration/webhook/utils.ts b/apps/web/app/api/stripe/integration/webhook/utils.tsindex 5a63c808ef..229eed713b 100644--- a/apps/web/app/api/stripe/integration/webhook/utils.ts+++ b/apps/web/app/api/stripe/integration/webhook/utils.ts@@ -96,6 +96,9 @@ export async function createNewCustomer(event: Stripe.Event) {}),]);+ // TODO:+ // Use the partner reward rule here+if (link.programId && link.partnerId) {// TODO: check if there is a Lead Reward Rule for this partner and if yes, create a lead commission// await prisma.commission.create({