From 6141a03bc765e451450302fe6e52a2a1dcbe482d Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Tue, 9 Apr 2024 12:50:14 -0400 Subject: [PATCH] fix: move max limit to 1000 for pagination --- src/validations/projects.validations.js | 2 +- src/validations/units.validations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validations/projects.validations.js b/src/validations/projects.validations.js index 4b11ba70..4eba441a 100644 --- a/src/validations/projects.validations.js +++ b/src/validations/projects.validations.js @@ -62,7 +62,7 @@ export const baseSchema = { export const projectsGetQuerySchema = Joi.object({ page: Joi.number().optional(), - limit: Joi.number().max(100).min(1).optional(), + limit: Joi.number().max(1000).min(1).optional(), search: Joi.string().optional(), columns: Joi.array().items(Joi.string()).single().optional(), orgUid: Joi.string().optional(), diff --git a/src/validations/units.validations.js b/src/validations/units.validations.js index 85ab319e..25171509 100644 --- a/src/validations/units.validations.js +++ b/src/validations/units.validations.js @@ -55,7 +55,7 @@ export const unitsPostSchema = Joi.object({ export const unitsGetQuerySchema = Joi.object({ page: Joi.number().min(1).required(), - limit: Joi.number().max(100).min(1).required(), + limit: Joi.number().max(1000).min(1).required(), search: Joi.string(), warehouseUnitId: Joi.string(), columns: Joi.array().items(Joi.string()).single(),