Skip to content

Commit

Permalink
fix: move max limit to 1000 for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Apr 9, 2024
1 parent acc346e commit 6141a03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/validations/projects.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/validations/units.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6141a03

Please sign in to comment.