Typo
This commit is contained in:
parent
a5095a2ca8
commit
101780a643
|
@ -6,11 +6,11 @@ import { areValidationErrors } from './utils'
|
||||||
const paginationValidator = [
|
const paginationValidator = [
|
||||||
check('start')
|
check('start')
|
||||||
.optional()
|
.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')
|
check('count')
|
||||||
.optional()
|
.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) => {
|
(req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||||
if (areValidationErrors(req, res)) return
|
if (areValidationErrors(req, res)) return
|
||||||
|
|
Loading…
Reference in New Issue