From 732ea74c6a35a97db610a2e26414f1a88812ec9d Mon Sep 17 00:00:00 2001 From: seo-wo <4nyth4me@gmail.com> Date: Fri, 1 Dec 2023 17:30:37 +0900 Subject: [PATCH] feat: slackId can be null or undefined #18 --- src/user/dto/signup-user.dto.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/user/dto/signup-user.dto.ts b/src/user/dto/signup-user.dto.ts index 1c8629b..9c840da 100644 --- a/src/user/dto/signup-user.dto.ts +++ b/src/user/dto/signup-user.dto.ts @@ -1,10 +1,11 @@ -import { IsNotEmpty, IsString } from 'class-validator'; +import { IsNotEmpty, IsString, IsOptional } from 'class-validator'; export class SignUpUserDto { - @IsString() @IsNotEmpty() + @IsString() readonly nickname: string; + @IsOptional() @IsString() readonly slackId: string; }