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 delete-reward.ts

Kiran Kfe1a0f550497
diff --git a/apps/web/lib/actions/partners/delete-reward.ts b/apps/web/lib/actions/partners/delete-reward.ts
index 3b02e487dc..acca07572f 100644
--- a/apps/web/lib/actions/partners/delete-reward.ts
+++ b/apps/web/lib/actions/partners/delete-reward.ts
@@ -41,8 +41,6 @@ export const deleteRewardAction = authActionClient
const rewardIdColumn = REWARD_EVENT_COLUMN_MAPPING[reward.event];
// 1. Update current associations
- // - If the reward is the default, update the default reward
- // - If the reward is not the default, update the reward to null
await tx.programEnrollment.updateMany({
where: {
programId,