The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran K496c3af03967
diff --git a/apps/web/app/(ee)/api/workflows/create-partner-commission/route.ts b/apps/web/app/(ee)/api/workflows/create-partner-commission/route.tsindex c2ed6d1f2f..17d0867d72 100644--- a/apps/web/app/(ee)/api/workflows/create-partner-commission/route.ts+++ b/apps/web/app/(ee)/api/workflows/create-partner-commission/route.ts@@ -476,8 +476,8 @@ async function stepCreateCommission(}}- // 1. Partner-level: any pending partner-scope fraud group → hold (all commission types for this partner).- // 2. Conversion-event: run fraud detection before create; if rules trigger → hold (customer-scoped).+ // 1. Partner-level: any pending partner-scope fraud group -> hold (all commission types for this partner).+ // 2. Conversion-event: run fraud detection before create; if rules trigger -> hold (customer-scoped).// An explicit `status` input (e.g. imports) wins; clawbacks (earnings <= 0) are never held.if (!status && earnings > 0 && canManageFraudEvents) {let shouldHoldCommission = false;