Skip to content

Commit

Permalink
fix: [TEO-243] adjust min for BRD naming. (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos1195 authored Dec 4, 2023
1 parent 003f957 commit f4aaf5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { OrganizationStructureType } from 'src/modules/organization/enums/organi

export class CreateOrganizationStructureDto {
@IsString()
@MaxLength(20)
@MaxLength(50)
@MinLength(2)
name: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IsString, MaxLength, MinLength } from 'class-validator';

export class UpdateOrganizationStructureDto {
@IsString()
@MaxLength(20)
@MaxLength(50)
@MinLength(2)
name: string;
}
4 changes: 2 additions & 2 deletions frontend/src/components/DivisionInputModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`),
Expand Down

0 comments on commit f4aaf5b

Please sign in to comment.