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.

Trim placement comments at two sync call sites

Rafifdcd5be73e14
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 ab1625e5aa..01d4a49fe0 100644
--- a/apps/web/lib/api/partners/create-and-enroll-partner.ts
+++ b/apps/web/lib/api/partners/create-and-enroll-partner.ts
@@ -254,8 +254,7 @@ export const createAndEnrollPartner = async ({
data: enrolledPartner,
}),
- // Queue an index update because a new enrollment was created. Queued
- // after the default links exist, so the first document carries them.
+ // Queue an index update because a new enrollment was created.
queuePartnerSearchSync({ enrollmentIds: [programEnrollment.id] }),
]),
);
diff --git a/apps/web/lib/api/partners/process-partner-deactivation.ts b/apps/web/lib/api/partners/process-partner-deactivation.ts
index 42827a27bd..ccfb48dc41 100644
--- a/apps/web/lib/api/partners/process-partner-deactivation.ts
+++ b/apps/web/lib/api/partners/process-partner-deactivation.ts
@@ -92,8 +92,6 @@ export async function processPartnerDeactivation({
);
// Queue an index update because the enrollment statuses moved to deactivated.
- // Outside the user branch below, which only runs for operator-driven
- // deactivations.
waitUntil(queuePartnerSearchSync({ partnerIds, programId }));
if (user) {