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.

Select only settings when checking the Stripe installation for discounts

Rafie7b9ee396135
diff --git a/apps/web/lib/discounts/discount-provider-stripe.ts b/apps/web/lib/discounts/discount-provider-stripe.ts
index daacd8cc8b..e9f8caa9f6 100644
--- a/apps/web/lib/discounts/discount-provider-stripe.ts
+++ b/apps/web/lib/discounts/discount-provider-stripe.ts
@@ -35,6 +35,9 @@ async function requireInstalledIntegration(workspace: Workspace) {
projectId: workspace.id,
integrationId: STRIPE_INTEGRATION_ID,
},
+ select: {
+ settings: true,
+ },
});
if (!installation) {
@@ -50,7 +53,6 @@ async function requireInstalledIntegration(workspace: Workspace) {
);
return {
- ...installation,
settings,
};
}