Skip to content

Commit

Permalink
fix(mu): zod schema for input params on debug route
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Jan 2, 2024
1 parent d727d80 commit 67a8f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/mu/src/routes/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ const withTraceRoutes = (app) => {
const inputSchema = z.object({
process: z.string().optional(),
message: z.string().optional(),
page: z.coerce(z.number().int()).default(1),
pageSize: z.coerce(z.number().int()).default(DEFAULT_PAGE_SIZE)
page: z.coerce.number().int().default(1),
pageSize: z.coerce.number().int().default(DEFAULT_PAGE_SIZE)
})

const input = inputSchema.parse(query)
Expand Down

0 comments on commit 67a8f00

Please sign in to comment.