From 101780a643193ef7bd2f189f33bb81e7ada5ebf3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 2 Aug 2021 16:17:44 +0200 Subject: [PATCH] Typo --- server/middlewares/validators/pagination.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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