The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update process-payouts.ts
Kiran K5cd71a5098c4
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.tsindex 49a288c37b..8ed702c901 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@@ -177,12 +177,14 @@ export async function processPayouts({customer: workspace.stripeId!,payment_method_types: [paymentMethod.type],payment_method: paymentMethod.id,- payment_method_options: {- us_bank_account: {- preferred_settlement_speed:- invoice.paymentMethod === "ach_fast" ? "fastest" : "standard",+ ...(paymentMethod.type === "us_bank_account" && {+ payment_method_options: {+ us_bank_account: {+ preferred_settlement_speed:+ invoice.paymentMethod === "ach_fast" ? "fastest" : "standard",+ },},- },+ }),currency,confirmation_method: "automatic",confirm: true,