The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix date schema
Steven Teydf69d171d3e4
diff --git a/apps/web/app/(ee)/api/bounties/route.ts b/apps/web/app/(ee)/api/bounties/route.tsindex b0c7c9daf1..8ce126541c 100644--- a/apps/web/app/(ee)/api/bounties/route.ts+++ b/apps/web/app/(ee)/api/bounties/route.ts@@ -52,7 +52,7 @@ export const POST = withWorkspace(performanceCondition,} = createBountySchema.parse(await parseRequestBody(req));- if (endsAt && endsAt < startsAt) {+ if (startsAt && endsAt && endsAt < startsAt) {throw new DubApiError({message: "endsAt must be on or after startsAt.",code: "bad_request",