The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
Kiran K8bb17f942d48
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.tsindex f78414b4c2..8398f75df7 100644--- a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts@@ -119,7 +119,7 @@ export async function confirmPayouts({const exchangeRate = fxQuote.rates["usd"].exchange_rate;- if (exchangeRate === null) {+ if (!exchangeRate || exchangeRate <= 0) {throw new Error(`Failed to get exchange rate from Stripe for ${currency}.`,);