Skip to content

Commit

Permalink
fix: update joi validation for workspace title to 50 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
hanstirtaputra committed Jul 29, 2022
1 parent 5b656c9 commit 05aa647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/workspace/workspace.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const logger = createLoggerWithLabel(module)
// Validators
const createWorkspaceValidator = celebrate({
[Segments.BODY]: {
title: Joi.string().min(4).max(200).required(),
title: Joi.string().min(4).max(50).required(),
},
})

Expand Down

0 comments on commit 05aa647

Please sign in to comment.