Skip to content

Commit

Permalink
Update paginationSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Oct 5, 2024
1 parent 6e390be commit ef9d1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validations/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { z } from 'zod'
export const paginationSchema = z.object({
sortBy: z.string().optional(),
order: z.enum(['asc', 'desc']).optional().default('asc'),
limit: z.number().int().min(1).optional().default(10),
pageSize: z.number().int().min(1).optional().default(10),
page: z.number().int().min(1).optional().default(1),
})

Expand Down

0 comments on commit ef9d1fd

Please sign in to comment.