The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Skip connect-payout reminders for unsupported countries (#4183)
Pedro Ladeira6de9e52dd6fe
diff --git a/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts b/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.tsindex 0a30f5c043..419dade28f 100644--- a/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts+++ b/apps/web/app/(ee)/api/cron/payouts/reminders/partners/route.ts@@ -1,4 +1,5 @@import { MIN_PAYOUT_AMOUNT_FOR_REMINDERS } from "@/lib/constants/misc";+import { PAYOUT_SUPPORTED_COUNTRIES } from "@/lib/constants/payouts-supported-countries";import { qstash } from "@/lib/cron";import { withCron } from "@/lib/cron/with-cron";import { queueBatchEmail } from "@/lib/email/queue-batch-email";@@ -34,6 +35,9 @@ export const GET = withCron(async () => {},partner: {payoutsEnabledAt: null,+ country: {+ in: PAYOUT_SUPPORTED_COUNTRIES.map((c) => c.code),+ },OR: [{ connectPayoutsLastRemindedAt: null },{