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-application-deauthorized.ts

Kiran K7e82ea480987
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/account-application-deauthorized.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/account-application-deauthorized.ts
index 348f4b8e9a..708c5b671f 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/account-application-deauthorized.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/account-application-deauthorized.ts
@@ -23,6 +23,7 @@ export async function accountApplicationDeauthorized({
where: {
id: workspace.id,
stripeConnectId: stripeAccountId,
+ OR: [{ stripeConnectMode: mode }, { stripeConnectMode: null }],
},
data: {
stripeConnectId: null,