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 customer-subscription-created.ts

Kiran K5fc92d7e982a
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/customer-subscription-created.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/customer-subscription-created.ts
index dafe84697a..1ecf530a5d 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/customer-subscription-created.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/customer-subscription-created.ts
@@ -26,6 +26,9 @@ export async function customerSubscriptionCreated({
where: {
stripeCustomerId,
},
+ select: {
+ id: true,
+ },
});
if (!customer) {
@@ -48,6 +51,7 @@ export async function customerSubscriptionCreated({
};
}
+ // Free trial subscription created — record free trial lead (when enabled)
const installedIntegration = await prisma.installedIntegration.findFirst({
where: {
projectId: workspace.id,