Skip to content

Commit

Permalink
fix: Create Validator (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran authored Feb 9, 2023
1 parent e72525d commit d209213
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/controllers/did.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ export class DidController {
if(!req.body.jobId && value) {
const {valid} = validateSpecCompliantPayload(value)
return valid
}
return true
} else if (req.body.jobId) {
return true
}
return false
}).withMessage(Messages.InvalidDidDocument)
]

Expand Down

0 comments on commit d209213

Please sign in to comment.