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 route.ts

Kiran K0c68fef89f32
diff --git a/apps/web/app/(ee)/api/groups/route.ts b/apps/web/app/(ee)/api/groups/route.ts
index 44124fe26e..6ee1be7ec3 100644
--- a/apps/web/app/(ee)/api/groups/route.ts
+++ b/apps/web/app/(ee)/api/groups/route.ts
@@ -76,8 +76,6 @@ export const POST = withWorkspace(
},
select: {
defaultLinks: true,
- additionalLinks: true,
- maxPartnerLinks: true,
},
}),
]);
@@ -108,7 +106,7 @@ export const POST = withWorkspace(
}
// Copy over the default group’s link settings when creating a new group
- const { defaultLinks, additionalLinks, maxPartnerLinks } = defaultGroup;
+ const { defaultLinks } = defaultGroup;
return await tx.partnerGroup.create({
data: {
@@ -118,8 +116,6 @@ export const POST = withWorkspace(
slug,
color,
...(defaultLinks && { defaultLinks }),
- ...(additionalLinks && { additionalLinks }),
- ...(maxPartnerLinks && { maxPartnerLinks }),
},
include: {
clickReward: true,