diff --git a/backend/src/api/organization/dto/create-org-structure.dto.ts b/backend/src/api/organization/dto/create-org-structure.dto.ts index 2c925a440..f0bba8a7a 100644 --- a/backend/src/api/organization/dto/create-org-structure.dto.ts +++ b/backend/src/api/organization/dto/create-org-structure.dto.ts @@ -3,7 +3,7 @@ import { OrganizationStructureType } from 'src/modules/organization/enums/organi export class CreateOrganizationStructureDto { @IsString() - @MaxLength(20) + @MaxLength(50) @MinLength(2) name: string; diff --git a/backend/src/api/organization/dto/update-org-structure.dto.ts b/backend/src/api/organization/dto/update-org-structure.dto.ts index f2d0a811e..5b228fb1b 100644 --- a/backend/src/api/organization/dto/update-org-structure.dto.ts +++ b/backend/src/api/organization/dto/update-org-structure.dto.ts @@ -2,7 +2,7 @@ import { IsString, MaxLength, MinLength } from 'class-validator'; export class UpdateOrganizationStructureDto { @IsString() - @MaxLength(20) + @MaxLength(50) @MinLength(2) name: string; } diff --git a/frontend/src/components/DivisionInputModal.tsx b/frontend/src/components/DivisionInputModal.tsx index e458c6280..ee607030c 100644 --- a/frontend/src/components/DivisionInputModal.tsx +++ b/frontend/src/components/DivisionInputModal.tsx @@ -28,9 +28,9 @@ const schema = yup .required(`${i18n.t('division:form.name.required')}`) .min(2, `${i18n.t('division:form.name.min', { value: '2' })}`) .max( - 20, + 50, `${i18n.t('division:form.name.max', { - value: '20', + value: '50', })}`, ) .matches(REGEX.NAME_REGEX, `${i18n.t('division:form.name.pattern')}`),