diff --git a/packages/app/pages/api/flights/index.ts b/packages/app/pages/api/flights/index.ts index cfe33bbc..823f217b 100644 --- a/packages/app/pages/api/flights/index.ts +++ b/packages/app/pages/api/flights/index.ts @@ -18,11 +18,11 @@ const schema = z.object({ .optional(), limit: z.preprocess( (x) => (x ? Number(x) : undefined), - z.number().min(1).optional().default(15).optional() + z.number().min(1).default(15) ), offset: z.preprocess( (x) => (x ? Number(x) : undefined), - z.number().min(0).optional().default(0).optional() + z.number().min(0).default(0) ), });