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.

remove redundant backfillLinkCommissions from createAndEnrollPartner

Steven Tey88766cde07bb
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 0e8ec37b39..361c6bc5fa 100644
--- a/apps/web/lib/api/partners/create-and-enroll-partner.ts
+++ b/apps/web/lib/api/partners/create-and-enroll-partner.ts
@@ -11,7 +11,6 @@ import { nanoid } from "@dub/utils";
import { waitUntil } from "@vercel/functions";
import { DubApiError } from "../errors";
import { getGroupOrThrow } from "../groups/get-group-or-throw";
-import { backfillLinkCommissions } from "./backfill-link-commissions";
import { createPartnerDefaultLinks } from "./create-partner-default-links";
interface CreateAndEnrollPartnerInput {
@@ -165,14 +164,6 @@ export const createAndEnrollPartner = async ({
waitUntil(
Promise.all([
- ...links.map((link) =>
- backfillLinkCommissions({
- id: link.id,
- partnerId: upsertedPartner.id,
- programId: program.id,
- }),
- ),
-
// upload partner image to R2
partner.image &&
!isStored(partner.image) &&