Compare commits

..

No commits in common. "8fb8aac0f940dc2fcdbf1e6c44e82ef9331e7bf3" and "737575176e3e2ffcdc5f50f00186a5bec96c991b" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'; import { ApiProperty } from '@nestjs/swagger';
import { IsString, ValidateIf } from 'class-validator'; import { IsNotEmpty, IsString } from 'class-validator';
export class OtpVerifyDto { export class OtpVerifyDto {
@ApiProperty({ @ApiProperty({
@ -9,6 +9,6 @@ export class OtpVerifyDto {
example: '2345', example: '2345',
}) })
@IsString() @IsString()
@ValidateIf((body) => body.otp_code) @IsNotEmpty()
otp_code: string; otp_code: string;
} }