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 account-updated.ts

Kiran Ka8926e0d12da
diff --git a/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts b/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts
index f6e04e1501..fd4da17116 100644
--- a/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts
+++ b/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts
@@ -85,6 +85,9 @@ export async function accountUpdated(event: Stripe.Event) {
prisma.partner.count({
where: {
payoutMethodHash,
+ id: {
+ not: partner.id,
+ },
},
}),