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-and-enroll-partner.ts

Steven Teycd295839499a
diff --git a/apps/web/lib/api/partners/create-and-enroll-partner.ts b/apps/web/lib/api/partners/create-and-enroll-partner.ts
index de4979ead0..824de1af9d 100644
--- a/apps/web/lib/api/partners/create-and-enroll-partner.ts
+++ b/apps/web/lib/api/partners/create-and-enroll-partner.ts
@@ -19,7 +19,6 @@ import { DubApiError } from "../errors";
import { linkCache } from "../links/cache";
import { includeTags } from "../links/include-tags";
import { backfillLinkCommissions } from "./backfill-link-commissions";
-import { transformPartner } from "./transform-partner";
export const createAndEnrollPartner = async ({
program,
@@ -140,15 +139,13 @@ export const createAndEnrollPartner = async ({
},
});
- let enrolledPartner = EnrolledPartnerSchema.parse({
+ const enrolledPartner = EnrolledPartnerSchema.parse({
...upsertedPartner,
...upsertedPartner.programs[0],
id: upsertedPartner.id,
links: [link],
});
- enrolledPartner = transformPartner(enrolledPartner);
-
waitUntil(
Promise.all([
// update and record link