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 Kd4382b032103
diff --git a/apps/web/app/(ee)/api/bounties/route.ts b/apps/web/app/(ee)/api/bounties/route.ts
index 41734d2b6b..738476bbdf 100644
--- a/apps/web/app/(ee)/api/bounties/route.ts
+++ b/apps/web/app/(ee)/api/bounties/route.ts
@@ -192,7 +192,7 @@ export const POST = withWorkspace(
type,
startsAt: startsAt!, // Can remove the ! when we're on a newer TS version (currently 5.4.4)
endsAt,
- submissionsOpenAt,
+ submissionsOpenAt: type === "submission" ? submissionsOpenAt : null,
rewardAmount,
rewardDescription,
performanceScope: type === "performance" ? performanceScope : null,