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.

address CR feedback

Steven Tey0afb351c9855
diff --git a/apps/web/lib/payouts/send-payout-reminder.ts b/apps/web/lib/payouts/send-payout-reminder.ts
index 587b5b0008..28884baf65 100644
--- a/apps/web/lib/payouts/send-payout-reminder.ts
+++ b/apps/web/lib/payouts/send-payout-reminder.ts
@@ -89,10 +89,11 @@ function payoutReminderWhere({
gte: MIN_PAYOUT_AMOUNT_FOR_REMINDERS,
},
programEnrollment: {
- // Internal programs always pay through Dub, so those partners still need
- // to connect payout details even if a tenantId is set.
- // External and hybrid programs pay outside Dub once tenantId is set, so
- // skip those. Without a tenantId they are still included.
+ // - Internal programs always pay through Dub, so those partners still need
+ // to connect payout details even if a tenantId is set.
+ // - Hybrid programs pay outside Dub once tenantId is set, so skip those.
+ // Without a tenantId they are still included.
+ // - External programs will always pay outside Dub, so skip those.
OR: [
{
program: {
@@ -100,6 +101,9 @@ function payoutReminderWhere({
},
},
{
+ program: {
+ payoutMode: ProgramPayoutMode.hybrid,
+ },
tenantId: null,
},
],