Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shared/utils/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ const validator = {
userId: z.string().min(1, 'User ID is required').max(200, 'User ID is too long'),
phoneNumber: z.string().max(100, 'Phone Number is too long'),
imageFile: isBrowser ? z.instanceof(File) : z.any(),
location: z.string().max(100, 'Location must be less than 70 characters'),
location: z.string().max(100, 'Location must be less than 100 characters'),
eventRoleId: z.string().min(1, 'Role ID is required').max(200, 'Role ID is too long'),
company: z.preprocess(
trimString,
z.string().max(100, 'Company must be less than 100 characters')
),
position: z.preprocess(
trimString,
z.string().max(100, 'Position must be less than 70 characters')
z.string().max(100, 'Position must be less than 100 characters')
),
url: z.string().url().max(200, 'URL must be less than 200 characters').or(z.literal('')),
venueId: z.preprocess((val) => {
Expand Down