Skip to content

Commit

Permalink
added more validation to the dto, to ensure the desired outcome is ac…
Browse files Browse the repository at this point in the history
…hieved.
  • Loading branch information
biniyam-29 committed Feb 7, 2025
1 parent f4c5393 commit 563e078
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/admin/channel/dto/create-channel.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export class CreateChannelDto {
@IsString()
name: string;

@IsNotEmpty()
@IsString()
type: ChannelType;

@IsNotEmpty()
Expand Down

0 comments on commit 563e078

Please sign in to comment.