The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update payout-failed.ts
Kiran K408c36b44806
diff --git a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.ts b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.tsindex 07c0dee9f1..2e79ca513e 100644--- a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.ts+++ b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.ts@@ -18,7 +18,6 @@ export async function payoutFailed(event: Stripe.Event) {},select: {email: true,- payoutsEnabledAt: true,},});@@ -39,6 +38,10 @@ export async function payoutFailed(event: Stripe.Event) {},});+ if (updatedPayouts.count === 0) {+ return `No "sent" payouts found for Stripe payout ${stripePayout.id}. Skipping...`;+ }+if (partner.email) {try {// Generate Stripe account link for updating bank account