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 confirm-payouts.ts

Steven Tey721fcc4303d3
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.ts
index 3bd382351b..a683dfbe62 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[currency].exchange_rate;
- // if Stripe's FX rate is not available, use the cached rate from Redis
+ // if Stripe's FX rate is not available, throw an error
if (!exchangeRate || exchangeRate <= 0) {
throw new Error(
`Failed to get exchange rate from Stripe for ${currency}.`,