From f8bbf94b7a2806cdb75edff4507ca9b39c18949f Mon Sep 17 00:00:00 2001 From: DaevMithran Date: Tue, 4 Jul 2023 15:43:28 +0530 Subject: [PATCH] fix: credential verify --- src/controllers/credentials.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/credentials.ts b/src/controllers/credentials.ts index 05a0e772..a636e9e8 100644 --- a/src/controllers/credentials.ts +++ b/src/controllers/credentials.ts @@ -29,7 +29,7 @@ export class CredentialController { return false }) .withMessage('Entry must be a jwt string or an credential'), - query('publish').isBoolean().withMessage('publish should be a boolean value') + query('publish').optional().isBoolean().withMessage('publish should be a boolean value') ] public static presentationValidator = [