Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update process-payouts.ts

Steven Tey78cdb59a84d1
diff --git a/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts
index b6aa5480b6..275049bee5 100644
--- a/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts
@@ -79,19 +79,6 @@ export async function processPayouts({
? { id: { notIn: excludedPayoutIds } }
: {}),
...getPayoutEligibilityFilter(program),
- ...(cutoffPeriodValue && {
- OR: [
- {
- periodStart: null,
- periodEnd: null,
- },
- {
- periodEnd: {
- lte: cutoffPeriodValue,
- },
- },
- ],
- }),
},
data: {
invoiceId: invoice.id,