From f27e04bcda98f973c0a38b45415fdb6cb9cf120f Mon Sep 17 00:00:00 2001 From: Kathryn Beaty Date: Thu, 7 Sep 2023 15:45:19 -0400 Subject: [PATCH] add a max count --- server/src/core/server/app/handlers/api/story/active.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/core/server/app/handlers/api/story/active.ts b/server/src/core/server/app/handlers/api/story/active.ts index 765101c6ed..f6575d3b17 100644 --- a/server/src/core/server/app/handlers/api/story/active.ts +++ b/server/src/core/server/app/handlers/api/story/active.ts @@ -14,7 +14,7 @@ export type Options = Pick; const ActiveStoriesQuerySchema = Joi.object().keys({ callback: Joi.string().allow("").optional(), siteID: Joi.string().required(), - count: Joi.number().optional(), + count: Joi.number().optional().max(999), }); interface ActiveStoriesQuery {