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.

Merge branch 'bounties' of https://github.com/dubinc/dub into bounties

Kiran Kf2a9e7d7e2e4
diff --cc apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
index e25557513c,0b9b9169f4..d0e5e6d7ce
--- a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
+++ b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
@@@ -29,20 -29,11 +29,17 @@@ export const PATCH = withWorkspace(asyn
const { bountyId } = params;
const programId = getDefaultProgramIdOrThrow(workspace);
- // TODO: [bounties] Persist performance logic to workflow
- const { performanceCondition, groupIds, ...data } = updateBountySchema.parse(
- await parseRequestBody(req),
- );
+ const {
- performanceCondition,
- groupIds,
- rewardAmount,
- startsAt,
++ name,
+ description,
++ startsAt,
+ endsAt,
- name,
++ rewardAmount,
+ submissionRequirements,
++ performanceCondition,
++ groupIds,
+ } = updateBountySchema.parse(await parseRequestBody(req));
- // TODO:
- // Don't allow changing the type of the bounty
-
const bounty = await getBountyOrThrow({
bountyId,
programId,