Skip to content

Commit

Permalink
changes in email validator dto
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
pranalidhanavade authored and KulkarniShashank committed Sep 11, 2024
1 parent 55dad98 commit 324acc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api-gateway/src/dtos/email-validator.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export class EmailValidator {
@Transform(({ value }) => trim(value))
@MaxLength(256, { message: 'Email must be at most 256 character' })
@IsEmail()
@Transform(({ value }) => 'string' === typeof value ? value.trim() : value)
@Transform(({ value }) => trim(value))
email: string;
}

0 comments on commit 324acc9

Please sign in to comment.