The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix `cutoffPeriod` bug
Steven Teyb76acc66de66
diff --git a/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.tsindex 8d42d097fd..c3ecc9a04f 100644--- a/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.ts@@ -26,9 +26,6 @@ export async function splitPayouts({: excludedPayoutIds && excludedPayoutIds.length > 0? { id: { notIn: excludedPayoutIds } }: {}),- periodStart: {- not: null, // exclude the manual payouts- },...getPayoutEligibilityFilter(program),},include: {diff --git a/apps/web/lib/api/payouts/get-eligible-payouts.ts b/apps/web/lib/api/payouts/get-eligible-payouts.tsindex a13457ee03..463e90d4ce 100644--- a/apps/web/lib/api/payouts/get-eligible-payouts.ts+++ b/apps/web/lib/api/payouts/get-eligible-payouts.ts@@ -38,19 +38,6 @@ export async function getEligiblePayouts({? { id: { notIn: excludedPayoutIds } }: {}),...getPayoutEligibilityFilter(program),- ...(cutoffPeriodValue && {- OR: [- {- periodStart: null,- periodEnd: null,- },- {- periodEnd: {- lte: cutoffPeriodValue,- },- },- ],- }),},include: {partner: {