The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update validate-bounty.ts
Kiran K63086dd2c273
diff --git a/apps/web/lib/api/bounties/validate-bounty.ts b/apps/web/lib/api/bounties/validate-bounty.tsindex 2502b1296a..5828eca8e4 100644--- a/apps/web/lib/api/bounties/validate-bounty.ts+++ b/apps/web/lib/api/bounties/validate-bounty.ts@@ -56,6 +56,13 @@ export async function validateBounty({}}+ if (rewardAmount && rewardAmount < 0) {+ throw new DubApiError({+ code: "bad_request",+ message: "Reward amount cannot be negative.",+ });+ }+if (!performanceScope && type === "performance") {throw new DubApiError({code: "bad_request",