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

Kiran Kd3c993f07db8
diff --git a/apps/web/lib/actions/partners/update-reward.ts b/apps/web/lib/actions/partners/update-reward.ts
index f51d73923e..f8174a5daa 100644
--- a/apps/web/lib/actions/partners/update-reward.ts
+++ b/apps/web/lib/actions/partners/update-reward.ts
@@ -15,6 +15,9 @@ const schema = updateRewardSchema.and(
}),
);
+// TODO:
+// Make sure all cases are added that are handled in the create-reward.ts file
+
export const updateRewardAction = authActionClient
.schema(schema)
.action(async ({ parsedInput, ctx }) => {
@@ -27,13 +30,6 @@ export const updateRewardAction = authActionClient
programId,
});
- await prisma.reward.findUniqueOrThrow({
- where: {
- id: rewardId,
- programId,
- },
- });
-
let programEnrollments: { id: string }[] = [];
if (partnerIds) {