refactor: refactor according to PR comments

This commit is contained in:
Matilda Landström
2024-04-26 13:12:40 +02:00
parent 7480b212e2
commit 38d65f7b37
11 changed files with 67 additions and 85 deletions
+9 -3
View File
@@ -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({})