feat: update validation otp cancel reconciliation

pull/153/head
Firman Ramdhani 2025-06-11 15:55:21 +07:00
parent 7c45a20866
commit 3a0efb00a9
1 changed files with 2 additions and 2 deletions

View File

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