fix: users pagination remove min/max as its a string not a number, also add new env var to example

This commit is contained in:
Agusti Fernandez Pardo committed 2022-07-14 19:44:24 +02:00
1 parent c352720877
commit aa12f893e8
2 files changed
+1 -3

No files matched your search

-3
View File
@@ -4,14 +4,11 @@ import z from "zod";
const withPage = z.object({
page: z
.string()
.min(1)
.optional()
.default("1")
.transform((n) => parseInt(n)),
take: z
.string()
.min(10)
.max(100)
.optional()
.default("10")
.transform((n) => parseInt(n)),