Which area(s) of Hypercerts are affected? (leave empty if unsure)
SDK
To Reproduce
- Call getOrganization using
repo.organizations.get(did)
Describe the Bug
Not really a bug but currently repo.organizations.get calls repo.organizations.list first and then manually goes through each of them with a .find function.
Currently if there are numerous organizations and it needs pagination (more than a 100) and if the org Did falls in the second page of the results then technically repo.organiztaions.get would return not found or undefined but this is wrong.
Expected Behavior
The get call should not perform a list and then search. it should directly perform a get call for that specific did.
Which area(s) of Hypercerts are affected? (leave empty if unsure)
SDK
To Reproduce
repo.organizations.get(did)Describe the Bug
Not really a bug but currently
repo.organizations.getcallsrepo.organizations.listfirst and then manually goes through each of them with a.findfunction.Currently if there are numerous organizations and it needs pagination (more than a 100) and if the org Did falls in the second page of the results then technically
repo.organiztaions.getwould return not found or undefined but this is wrong.Expected Behavior
The
getcall should not perform a list and then search. it should directly perform a get call for that specific did.