The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add max length for rewardDescription
Steven Teyb801010fcc6a
diff --git a/apps/web/lib/zod/schemas/bounties.ts b/apps/web/lib/zod/schemas/bounties.tsindex 09c081f2eb..25fc92fe66 100644--- a/apps/web/lib/zod/schemas/bounties.ts+++ b/apps/web/lib/zod/schemas/bounties.ts@@ -73,7 +73,10 @@ export const BountySchema = z.object({startsAt: z.date(),endsAt: z.date().nullable(),rewardAmount: z.number().nullable(),- rewardDescription: z.string().nullable(),+ rewardDescription: z+ .string()+ .max(140, "Reward description must be less than 140 characters")+ .nullable(),performanceCondition: workflowConditionSchema.nullable().default(null),submissionRequirements: submissionRequirementsSchema.nullable().default(null),groups: z.array(GroupSchema.pick({ id: true })),