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.

fix programEnrollment.update

Steven Teyf1cd9d975701
diff --git a/apps/web/lib/actions/partners/deactivate-partner.ts b/apps/web/lib/actions/partners/deactivate-partner.ts
index 5d5e4deb80..8300528c58 100644
--- a/apps/web/lib/actions/partners/deactivate-partner.ts
+++ b/apps/web/lib/actions/partners/deactivate-partner.ts
@@ -56,6 +56,11 @@ export const deactivatePartnerAction = authActionClient
},
data: {
status: ProgramEnrollmentStatus.deactivated,
+ groupId: null,
+ clickRewardId: null,
+ leadRewardId: null,
+ saleRewardId: null,
+ discountId: null,
},
}),
]);
diff --git a/apps/web/scripts/perplexity/deactivate-partners.ts b/apps/web/scripts/perplexity/deactivate-partners.ts
index 4453cc8741..a1af56e779 100644
--- a/apps/web/scripts/perplexity/deactivate-partners.ts
+++ b/apps/web/scripts/perplexity/deactivate-partners.ts
@@ -49,6 +49,11 @@ async function main() {
where,
data: {
status: "deactivated",
+ groupId: null,
+ clickRewardId: null,
+ leadRewardId: null,
+ saleRewardId: null,
+ discountId: null,
},
}),
]);