Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Validate new email
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 15, 2020
1 parent 0653b2a commit 9567805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/emails/emails.dto.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IsNotEmpty, IsString } from 'class-validator';
import { IsNotEmpty, IsEmail } from 'class-validator';

export class CreateEmailDto {
@IsString()
@IsEmail()
@IsNotEmpty()
email!: string;
}

0 comments on commit 9567805

Please sign in to comment.