PteroJS icon indicating copy to clipboard operation
PteroJS copied to clipboard

Nests doesn't have a fetchAll like nodes and locations

Open kivox opened this issue 2 years ago • 2 comments

The NestManager uses fetch() to list all if the id is empty rather than relying on fetchAll like the rest of the Managers to my knowledge.

kivox avatar Apr 25 '23 21:04 kivox

https://github.com/PteroPackages/PteroJS/blob/0823869d7064ca4f15a2611e4aa977950fa204b9/src/application/NestManager.ts#L102

kivox avatar Apr 25 '23 21:04 kivox

The #fetch method in other managers don't rely on #fetchAll but they do have the method unlike this one. IIRC it was left out because the endpoint has different requirements, but it should definitely be implemented one way or another.

devnote-dev avatar Apr 26 '23 00:04 devnote-dev