Fix Zod parsing error

environments/review-groups-zod-1n4y95/deployments/2814
Chewbacca 2 years ago
parent 487604b15a
commit a0c67c9b6f

@ -25,7 +25,7 @@ const groupSchema = z.object({
locked: z.boolean().catch(false),
membership_required: z.boolean().catch(false),
members_count: z.number().catch(0),
note: z.string().catch('').refine(note => note === '<p></p>' ? '' : note),
note: z.string().refine(note => note === '<p></p>' ? '' : note).catch(''),
relationship: groupRelationshipSchema.nullable().catch(null), // Dummy field to be overwritten later
statuses_visibility: z.string().catch('public'),
uri: z.string().catch(''),

Loading…
Cancel
Save