Merge pull request #149 from calcom/fix/users-pagination
fix: users pagination remove min/max as its a string not a numberpull/9078/head
commit
a8e8acd053
|
@ -1,2 +1,3 @@
|
||||||
API_KEY_PREFIX=cal_
|
API_KEY_PREFIX=cal_
|
||||||
DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"
|
DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"
|
||||||
|
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
|
@ -4,14 +4,11 @@ import z from "zod";
|
||||||
const withPage = z.object({
|
const withPage = z.object({
|
||||||
page: z
|
page: z
|
||||||
.string()
|
.string()
|
||||||
.min(1)
|
|
||||||
.optional()
|
.optional()
|
||||||
.default("1")
|
.default("1")
|
||||||
.transform((n) => parseInt(n)),
|
.transform((n) => parseInt(n)),
|
||||||
take: z
|
take: z
|
||||||
.string()
|
.string()
|
||||||
.min(10)
|
|
||||||
.max(100)
|
|
||||||
.optional()
|
.optional()
|
||||||
.default("10")
|
.default("10")
|
||||||
.transform((n) => parseInt(n)),
|
.transform((n) => parseInt(n)),
|
||||||
|
|
Loading…
Reference in New Issue