Skip to content
Snippets Groups Projects
Commit 3b3a9239 authored by Boyan Tsolov's avatar Boyan Tsolov
Browse files

fix: check is decorator is problematic

parent db0a2a94
No related branches found
No related tags found
No related merge requests found
Pipeline #66578 waiting for manual action with stages
in 22 minutes and 17 seconds
......@@ -4,11 +4,9 @@ import { IsNotEmpty, IsString, ValidateIf } from "class-validator";
export class ProofReqDto {
@ValidateIf((o) => o && typeof o.proofUrl === 'undefined')
@IsString()
@IsNotEmpty()
proofRecordId: string;
@ValidateIf((o) => o && typeof o.proofRecordId === 'undefined')
@IsString()
@IsNotEmpty()
proofUrl: string;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment