Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into development
commit
838670c822
|
@ -1,5 +1,5 @@
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
import { IsNotEmpty, IsString } from 'class-validator';
|
import { IsString, ValidateIf } from 'class-validator';
|
||||||
|
|
||||||
export class OtpVerifyDto {
|
export class OtpVerifyDto {
|
||||||
@ApiProperty({
|
@ApiProperty({
|
||||||
|
@ -9,6 +9,6 @@ export class OtpVerifyDto {
|
||||||
example: '2345',
|
example: '2345',
|
||||||
})
|
})
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsNotEmpty()
|
@ValidateIf((body) => body.otp_code)
|
||||||
otp_code: string;
|
otp_code: string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue