The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update payout-paid.ts
Kiran K158182beeecc
diff --git a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.tsindex 30e268a232..6b3162d101 100644--- a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts+++ b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts@@ -26,7 +26,7 @@ export async function payoutPaid(event: Stripe.Event) {const stripePayout = event.data.object as Stripe.Payout;- const { count: payoutsCount } = await prisma.payout.updateMany({+ await prisma.payout.updateMany({where: {status: "sent",stripePayoutId: stripePayout.id,@@ -35,24 +35,4 @@ export async function payoutPaid(event: Stripe.Event) {status: "completed",},});-- if (payoutsCount === 0) {- console.error(- `No payouts found with Stripe payout ID ${stripePayout.id}. Skipping...`,- );- return;- }-- const payouts = await prisma.payout.findMany({- where: {- stripePayoutId: stripePayout.id,- },- select: {- id: true,- },- });-- console.log(- `Completed payouts for Stripe Connect account ${stripeAccount}: [${payouts.map((p) => p.id).join(", ")}]`,- );}