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 charge-succeeded.ts

Kiran K922fe7f6eb96
diff --git a/apps/web/app/api/stripe/webhook/charge-succeeded.ts b/apps/web/app/api/stripe/webhook/charge-succeeded.ts
index 3f4440e772..48060975f1 100644
--- a/apps/web/app/api/stripe/webhook/charge-succeeded.ts
+++ b/apps/web/app/api/stripe/webhook/charge-succeeded.ts
@@ -22,6 +22,11 @@ export async function chargeSucceeded(event: Stripe.Event) {
},
include: {
payouts: {
+ where: {
+ status: {
+ not: "completed",
+ },
+ },
include: {
program: true,
partner: true,