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.

fix: unset subscriptionCanceledAt on invoice.paid

Cursor Agent974a8a2c0e74
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts
index 6a1136e27e..0880e4814c 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/invoice-paid.ts
@@ -278,6 +278,7 @@ export async function invoicePaid({
increment: invoiceSaleAmount,
},
firstSaleAt: customer.firstSaleAt ? undefined : new Date(),
+ subscriptionCanceledAt: null,
},
}),
]);