Skip to content

Commit

Permalink
feat: Change the listGroups method to return an already-fully-listed …
Browse files Browse the repository at this point in the history
…array, since there aren't likely to be a ton of groups in an org.
  • Loading branch information
adam-coster committed Sep 27, 2021
1 parent b97342f commit 959c110
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bscotch/bravo",
"description": "Bravo is a Favro SDK by Butterscotch Shenanigans",
"description": "Bravo: A Favro SDK with full Typescript support and tons of convenience features. By Butterscotch Shenanigans",
"repository": "https://github.com/bscotch/favro-sdk",
"homepage": "https://github.com/bscotch/favro-sdk#readme",
"author": "Adam Coster",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/BravoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ export class BravoClient extends FavroClient {
{ method: 'get' },
BravoGroup,
)) as BravoResponseEntities<FavroApi.Group.Model, BravoGroup>;
return res;
return await res.getAllEntities();
}

async findGroupById(groupId: string) {
Expand All @@ -833,7 +833,7 @@ export class BravoClient extends FavroClient {
{ method: 'get' },
BravoGroup,
)) as BravoResponseEntities<FavroApi.Group.Model, BravoGroup>;
return res.getFirstEntity();
return await res.getFirstEntity();
}

//#endregion
Expand Down

0 comments on commit 959c110

Please sign in to comment.