auth
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { IsNotEmpty, IsString, IsMobilePhone } from 'class-validator';
|
import { IsNotEmpty, IsString, IsMobilePhone } from 'class-validator';
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
import { Transform } from 'class-transformer';
|
|
||||||
|
|
||||||
export class RequestOtpDto {
|
export class RequestOtpDto {
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@@ -11,7 +10,6 @@ export class RequestOtpDto {
|
|||||||
|
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsString()
|
@IsString()
|
||||||
@Transform(({ value }) => value?.toLowerCase())
|
|
||||||
@ApiProperty({ example: 'zhivan', description: 'restaurant slug' })
|
@ApiProperty({ example: 'zhivan', description: 'restaurant slug' })
|
||||||
slug: string;
|
slug: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { IsNotEmpty, IsString, Length, IsMobilePhone } from 'class-validator';
|
import { IsNotEmpty, IsString, Length, IsMobilePhone } from 'class-validator';
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
import { Transform } from 'class-transformer';
|
|
||||||
|
|
||||||
export class VerifyOtpDto {
|
export class VerifyOtpDto {
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@@ -17,7 +16,6 @@ export class VerifyOtpDto {
|
|||||||
|
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsString()
|
@IsString()
|
||||||
@Transform(({ value }) => value?.toLowerCase())
|
|
||||||
@ApiProperty({ example: 'zhivan', description: 'restaurant slug' })
|
@ApiProperty({ example: 'zhivan', description: 'restaurant slug' })
|
||||||
slug: string;
|
slug: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user