File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
apps/meteor/app/api/server/v1 Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ const e2eEndpoints = API.v1
104104 response : {
105105 400 : validateBadRequestErrorResponse ,
106106 401 : validateUnauthorizedErrorResponse ,
107- 200 : ajv . compile < { public_key : string ; private_key : string } > ( {
107+ 200 : ajv . compile < { public_key ? : string ; private_key ? : string } > ( {
108108 type : 'object' ,
109109 properties : {
110110 public_key : { type : 'string' } ,
@@ -118,10 +118,6 @@ const e2eEndpoints = API.v1
118118 async function action ( ) {
119119 const result = await Users . fetchKeysByUserId ( this . userId ) ;
120120
121- if ( ! ( 'public_key' in result ) || ! ( 'private_key' in result ) ) {
122- return API . v1 . failure ( 'E2E keys not found for user' ) ;
123- }
124-
125121 return API . v1 . success ( result ) ;
126122 } ,
127123 )
You can’t perform that action at this time.
0 commit comments