Skip to content

Commit

Permalink
Update 상태메세지 변경시 길이 100 제한
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj9109 committed Dec 16, 2023
1 parent eb1180b commit 989e93c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/backend/src/users/dto/update-user.dto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString, Matches } from 'class-validator';
import { IsOptional, IsString, Matches, MaxLength } from 'class-validator';

export class UpdateUserDto {
@ApiPropertyOptional({
Expand All @@ -25,5 +25,6 @@ export class UpdateUserDto {
@ApiPropertyOptional({ description: '프로필 상태 메세지', required: false })
@IsOptional()
@IsString()
@MaxLength(100)
statusMessage?: string;
}

0 comments on commit 989e93c

Please sign in to comment.