Scheduling infrastructure for absolutely everyone.
fix: users pagination remove min/max as its a string not a number, also add new env var to example
Agusti Fernandez Pardoaa12f893e813
diff --git a/.env.example b/.env.exampleindex 1c0f6152c1a..eec3f283f75 100644--- a/.env.example+++ b/.env.example@@ -1,2 +1,3 @@API_KEY_PREFIX=cal_DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"+NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000\ No newline at end of filediff --git a/lib/helpers/withPagination.ts b/lib/helpers/withPagination.tsindex 8e2da388f5e..32ff4a7289d 100644--- a/lib/helpers/withPagination.ts+++ b/lib/helpers/withPagination.ts@@ -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)),