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 Tey0768209feb11
diff --git a/apps/web/lib/api/payouts/payout-eligibility-filter.ts b/apps/web/lib/api/payouts/payout-eligibility-filter.ts
index 307dceab14..2cc04531f1 100644
--- a/apps/web/lib/api/payouts/payout-eligibility-filter.ts
+++ b/apps/web/lib/api/payouts/payout-eligibility-filter.ts
@@ -16,15 +16,15 @@ export function getPayoutEligibilityFilter({
amount: {
gte: program.minPayoutAmount,
},
- // Gift card payouts are capped at $2,000 per payout
+ // Gift card payouts must be within the Tremendous allowed range
NOT: {
partner: {
defaultPayoutMethod: "tremendous",
},
- amount: {
- lt: TREMENDOUS_MIN_PAYOUT_AMOUNT_CENTS,
- gt: TREMENDOUS_MAX_PAYOUT_AMOUNT_CENTS,
- },
+ OR: [
+ { amount: { lt: TREMENDOUS_MIN_PAYOUT_AMOUNT_CENTS } },
+ { amount: { gt: TREMENDOUS_MAX_PAYOUT_AMOUNT_CENTS } },
+ ],
},
};