Skip to content

Commit

Permalink
[FIX] 고민생성시, 빈 답변 불가하게
Browse files Browse the repository at this point in the history
  • Loading branch information
leGit-y committed Nov 23, 2023
1 parent 951249b commit 7b89454
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interfaces/DTO/worryDTO.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IsString, IsDefined, IsNumber, IsArray, IsNotEmpty, isNumber} from 'class-validator';
import { IsString, IsDefined, IsNumber, IsArray, IsNotEmpty, isNumber, ArrayNotEmpty} from 'class-validator';

class worryCreateDTO {

Expand All @@ -15,6 +15,7 @@ class worryCreateDTO {
title!: string;

@IsDefined()
@ArrayNotEmpty()
@IsArray()
answers!: Array<string>;

Expand Down

0 comments on commit 7b89454

Please sign in to comment.