This commit is contained in:
2026-02-15 09:49:06 +03:30
parent 6fd68acc81
commit c8ff614aaf
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -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;
} }
-2
View File
@@ -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;
} }