Skip to content

Commit b09a0cc

Browse files
committed
🐞 fix: (BE) - chat dto validation에서 특정 값들을 optional로 수정
1 parent 0bd8932 commit b09a0cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/socket/src/room/dto/chat.dto.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { USER_ROLE } from '@constant';
2-
import { IsDate, IsNotEmpty, IsString } from 'class-validator';
2+
import { IsDate, IsNotEmpty, IsOptional, IsString } from 'class-validator';
33

44
export enum ChatTarget {
55
EVERYONE = 'everyone',
@@ -21,12 +21,12 @@ export class ChatRequestDto {
2121
target: ChatTarget;
2222

2323
@IsString()
24-
@IsNotEmpty()
25-
uuid?: string;
24+
@IsOptional()
25+
uuid: string;
2626

2727
@IsString()
28-
@IsNotEmpty()
29-
role?: USER_ROLE;
28+
@IsOptional()
29+
role: USER_ROLE;
3030
}
3131

3232
export class ChatResponseDto {

0 commit comments

Comments
 (0)