refactor: refactor according to PR comments
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
/**
|
||||
* Add route inputs (both query & mutation)
|
||||
*/
|
||||
import { z } from "zod"
|
||||
|
||||
export const staysInput = z
|
||||
.object({
|
||||
perPage: z.number().min(0).default(6),
|
||||
page: z.number().min(0).default(0),
|
||||
cursor: z.number().nullish(),
|
||||
})
|
||||
.default({})
|
||||
|
||||
Reference in New Issue
Block a user