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 checkout-session-completed.ts

Kiran K0535e8399474
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
index 6f129418da..0235ee83bc 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/checkout-session-completed.ts
@@ -221,7 +221,6 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
select: {
id: true,
domain: true,
- couponCodeTrackingEnabledAt: true,
},
},
},
@@ -237,10 +236,6 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
const program = workspace.programs[0];
- if (!program.couponCodeTrackingEnabledAt) {
- return `Program ${program.id} not enabled coupon code tracking, skipping...`;
- }
-
if (!program.domain) {
return `Program ${program.id} has no domain, skipping...`;
}