chore: no default export
This commit is contained in:
@@ -5,6 +5,9 @@ import { z } from "zod";
|
||||
// at different endpoints that require this validation.
|
||||
const schemaQueryIdAsString = z
|
||||
.object({
|
||||
// since we added apiKey as query param this is required by next-validations helper
|
||||
// for query params to work properly and not fail.
|
||||
apiKey: z.string().cuid(),
|
||||
// since nextjs parses query params as strings,
|
||||
// we need to cast them to numbers using z.transform() and parseInt()
|
||||
id: z.string()
|
||||
|
||||
Reference in New Issue
Block a user