rename message broker interface

This commit is contained in:
Gsk54
2022-12-23 15:49:35 +01:00
parent 6eb9b40e14
commit 3f11f16e59
5 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
import { AutoMap } from '@automapper/classes';
import { IsOptional, IsString } from 'class-validator';
import { IsEmail, IsOptional, IsPhoneNumber, IsString } from 'class-validator';
export class CreateUserRequest {
@IsString()
@@ -17,12 +17,12 @@ export class CreateUserRequest {
@AutoMap()
lastName?: string;
@IsString()
@IsEmail()
@IsOptional()
@AutoMap()
email?: string;
@IsString()
@IsPhoneNumber()
@IsOptional()
@AutoMap()
phone?: string;