The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix the create payout by filtering the commission
Kiran Kc1ca76779e69
diff --git a/apps/web/app/api/cron/payouts/create-payout.ts b/apps/web/app/api/cron/payouts/create-payout.tsindex ee0cdeff34..2abebdd34f 100644--- a/apps/web/app/api/cron/payouts/create-payout.ts+++ b/apps/web/app/api/cron/payouts/create-payout.ts@@ -60,6 +60,7 @@ export const createPayout = async ({partnerId,payoutId: null,status: "pending",+ type,// Only process commissions that were created before the holding period...(holdingPeriodDays > 0 && {createdAt: {