The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update split-payouts.ts
Kiran K580f92d26496
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/split-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/split-payouts.tsindex 92bd3b37bf..207eb0e050 100644--- a/apps/web/app/(ee)/api/cron/payouts/confirm/split-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/split-payouts.ts@@ -115,18 +115,5 @@ export async function splitPayouts({});}}-- // If there are no previous commissions, we need to update the existing payout start date- // so that it will be excluded from the current month's payout- else {- await prisma.payout.update({- where: {- id: payout.id,- },- data: {- periodStart: currentCommissions[0].createdAt,- },- });- }}}