Skip to content

Commit

Permalink
feat: slackId can be null or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
seo-wo committed Dec 1, 2023
1 parent c7ffc71 commit 732ea74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/user/dto/signup-user.dto.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 732ea74

Please sign in to comment.