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

Kiran K7a141677c823
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 c692ccf8ad..e31b8f68df 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
@@ -304,13 +304,13 @@ export async function processPayouts({
}
// Non-production workspaces skip the Stripe payment intent above.
- // Simulate that flow here with a 1-minute delay so
+ // Simulate that flow here with a 30 second delay so
// sandbox payouts behave like a settled ACH charge.
if (!isProductionWorkspace) {
await qstash.publishJSON({
url: `${APP_DOMAIN_WITH_NGROK}/api/cron/payouts/charge-succeeded`,
method: "POST",
- delay: "1m",
+ delay: "30s",
flowControl: {
key: invoice.id,
rate: 1,