Skip to content

Commit

Permalink
add a max count
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Sep 7, 2023
1 parent dd84a06 commit f27e04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/core/server/app/handlers/api/story/active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type Options = Pick<AppOptions, "mongo">;
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 {
Expand Down

0 comments on commit f27e04b

Please sign in to comment.