From 05aa647689808e83dba9080a50d37f7ccfc7310e Mon Sep 17 00:00:00 2001 From: Hans Tirtaputra Date: Fri, 29 Jul 2022 10:33:14 +0800 Subject: [PATCH] fix: update joi validation for workspace title to 50 chars --- src/app/modules/workspace/workspace.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/workspace/workspace.controller.ts b/src/app/modules/workspace/workspace.controller.ts index c04e4c2f1d..5c7cad56de 100644 --- a/src/app/modules/workspace/workspace.controller.ts +++ b/src/app/modules/workspace/workspace.controller.ts @@ -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(), }, })