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 copy-reward-to-live.ts

Kiran K24f4f0732d83
diff --git a/apps/web/lib/sandbox/copy-reward-to-live.ts b/apps/web/lib/sandbox/copy-reward-to-live.ts
index da55281b3d..19b2568af4 100644
--- a/apps/web/lib/sandbox/copy-reward-to-live.ts
+++ b/apps/web/lib/sandbox/copy-reward-to-live.ts
@@ -130,6 +130,7 @@ export const copyRewardToLiveAction = authActionClient
await tx.programEnrollment.updateMany({
where: {
+ programId: targetProgram.id,
groupId: targetGroupId,
status: {
notIn: INACTIVE_ENROLLMENT_STATUSES,