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 create-link.ts

Kiran Kf0c8422c19a9
diff --git a/apps/web/lib/api/links/create-link.ts b/apps/web/lib/api/links/create-link.ts
index 5e69a0dbf7..9ffc06bb78 100644
--- a/apps/web/lib/api/links/create-link.ts
+++ b/apps/web/lib/api/links/create-link.ts
@@ -50,7 +50,6 @@ export async function createLink(link: CreateLinkProps) {
testVariants,
testStartedAt,
testCompletedAt,
- skipCouponCreation,
} = link;
const combinedTagIds = combineTagIds(link);
@@ -66,6 +65,7 @@ export async function createLink(link: CreateLinkProps) {
workspace,
program,
discount,
+ skipCouponCreation,
...rest
} = link;