diff --git a/server/middlewares/validators/pagination.ts b/server/middlewares/validators/pagination.ts index 53bdc60..48d98c4 100644 --- a/server/middlewares/validators/pagination.ts +++ b/server/middlewares/validators/pagination.ts @@ -6,11 +6,11 @@ import { areValidationErrors } from './utils' const paginationValidator = [ check('start') .optional() - .isInt({ min: 0, max: PAGINATION_START.MAX }).withMessage(`Should have a number start (>= 0 and < ${PAGINATION_START.MAX}`), + .isInt({ min: 0, max: PAGINATION_START.MAX }).withMessage(`Should have a number start (>= 0 and < ${PAGINATION_START.MAX})`), check('count') .optional() - .isInt({ min: 0, max: PAGINATION_COUNT.MAX }).withMessage(`Should have a number count (> 0 and < ${PAGINATION_COUNT.MAX}`), + .isInt({ min: 0, max: PAGINATION_COUNT.MAX }).withMessage(`Should have a number count (> 0 and < ${PAGINATION_COUNT.MAX})`), (req: express.Request, res: express.Response, next: express.NextFunction) => { if (areValidationErrors(req, res)) return