Skip to content

[SDK] Get Organization calls list first #99

@Kzoeps

Description

@Kzoeps

Which area(s) of Hypercerts are affected? (leave empty if unsure)

SDK

To Reproduce

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions