mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Update next-connect middleware to return next() to fix error handling
This commit is contained in:
@@ -15,14 +15,14 @@ const CreateBreweryPostSchema = z.object({
|
||||
invalid_type_error: 'Description must be a string.',
|
||||
})
|
||||
.min(1, { message: 'Description is required.' })
|
||||
.max(500, { message: 'Description is too long.' }),
|
||||
.max(1500, { message: 'Description is too long.' }),
|
||||
address: z
|
||||
.string({
|
||||
required_error: 'Address is required.',
|
||||
invalid_type_error: 'Address must be a string.',
|
||||
})
|
||||
.min(1, { message: 'Address is required.' })
|
||||
.max(100, { message: 'Address is too long.' }),
|
||||
.max(300, { message: 'Address is too long.' }),
|
||||
|
||||
city: z
|
||||
.string({
|
||||
|
||||
Reference in New Issue
Block a user