The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
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.tsindex 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 = authActionClientconst 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 nullawait tx.programEnrollment.updateMany({where: {programId,