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 route.ts

Kiran Kff07549a337d
diff --git a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
index 508c9e5c32..16b471d239 100644
--- a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
+++ b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
@@ -149,7 +149,8 @@ export const PATCH = withWorkspace(
description,
startsAt: startsAt!, // Can remove the ! when we're on a newer TS version (currently 5.4.4)
endsAt,
- submissionsOpenAt,
+ submissionsOpenAt:
+ bounty.type === "submission" ? submissionsOpenAt : null,
rewardAmount,
rewardDescription,
...(bounty.type === "submission" &&