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

Kiran Kefb9d7eddce8
diff --git a/apps/web/lib/actions/partners/create-reward.ts b/apps/web/lib/actions/partners/create-reward.ts
index 73c8cc6a3a..761529a156 100644
--- a/apps/web/lib/actions/partners/create-reward.ts
+++ b/apps/web/lib/actions/partners/create-reward.ts
@@ -35,8 +35,8 @@ export const createRewardAction = authActionClient
if (isDefault) {
const defaultReward = await prisma.reward.findFirst({
where: {
- event,
programId,
+ event,
default: true,
},
});