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.

Load only link keys in Lemon Squeezy and Tapfiliate imports

Rafif78fa66a91d7
diff --git a/apps/web/lib/lemonsqueezy/import-partners.ts b/apps/web/lib/lemonsqueezy/import-partners.ts
index 5f3befef31..68f71e1df1 100644
--- a/apps/web/lib/lemonsqueezy/import-partners.ts
+++ b/apps/web/lib/lemonsqueezy/import-partners.ts
@@ -243,7 +243,11 @@ async function createPartnerAndLinks({
discountId: group.discountId,
},
include: {
- links: true,
+ links: {
+ select: {
+ key: true,
+ },
+ },
},
});
diff --git a/apps/web/lib/tapfiliate/import-partners.ts b/apps/web/lib/tapfiliate/import-partners.ts
index 3db839a47f..08c41c4256 100644
--- a/apps/web/lib/tapfiliate/import-partners.ts
+++ b/apps/web/lib/tapfiliate/import-partners.ts
@@ -245,7 +245,11 @@ async function createPartnerAndLinks({
discountId: group.discountId,
},
include: {
- links: true,
+ links: {
+ select: {
+ key: true,
+ },
+ },
},
});