From e1239305650aae7b23c733a970643dee2ea5c6c9 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Tue, 7 Mar 2023 02:33:37 +0100 Subject: [PATCH] Added random paintings limit minimum --- src/routers/paintings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routers/paintings.ts b/src/routers/paintings.ts index fecf0b9..dae6090 100644 --- a/src/routers/paintings.ts +++ b/src/routers/paintings.ts @@ -16,7 +16,7 @@ const paintingParser = z const randomParser = z .object({ - limit: z.coerce.number().max(10), + limit: z.coerce.number().min(1).max(10), }) .required()