dhiway / cord-agent-app-v1

Agent (REST API endpoint) for cord.js sdk
Apache License 2.0
9 stars 7 forks source link

Fix error in revokeSchema #6

Closed ishivanshgoel closed 2 years ago

ishivanshgoel commented 2 years ago

There was an error left in #5 which I just noticed and now it is fixed.

In #5 schema fetched from db was directed passed into the method provided by SDK which was giving an error. Now, modified it to as below.

let { cordSchema } = schema;
cordSchema = JSON.parse(cordSchema);

Result: Working as expected

Request: image

Output: image