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.

pause cron

Steven Tey6a5e301a2f9b
diff --git a/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/route.ts b/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/route.ts
index 3707571a31..2a6a465c30 100644
--- a/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/route.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/route.ts
@@ -87,7 +87,10 @@ export async function POST(req: Request) {
}),
]);
- if (invoice._count.payouts > 100) {
+ if (
+ invoice._count.payouts > 100 &&
+ invoice.id !== "inv_1K858PN9HDXYG47RVC6C6ZT7N"
+ ) {
console.log(
"More than 100 payouts found for invoice, scheduling next batch...",
);