From 1a9448fca55ddab54a200cdf555c54714d5c0f47 Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Wed, 19 Oct 2022 16:07:50 +0200 Subject: [PATCH] fix: list all --- src/rc-sdk/RcSdkRole.ts | 2 +- src/rc-sdk/RcSdkTeam.ts | 4 ++-- src/rc-sdk/RcSdkUser.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rc-sdk/RcSdkRole.ts b/src/rc-sdk/RcSdkRole.ts index cd70612..2abbaef 100644 --- a/src/rc-sdk/RcSdkRole.ts +++ b/src/rc-sdk/RcSdkRole.ts @@ -35,7 +35,7 @@ export class RcSdkRole { } public list(): Promise { - return this.sdk.get(`roles.list`); + return this.sdk.get(`roles.list?count=0`); } public create(body: IRoleCreate): Promise { diff --git a/src/rc-sdk/RcSdkTeam.ts b/src/rc-sdk/RcSdkTeam.ts index 328470d..4f4fc03 100644 --- a/src/rc-sdk/RcSdkTeam.ts +++ b/src/rc-sdk/RcSdkTeam.ts @@ -105,11 +105,11 @@ export class RcSdkTeam { } public listAll(): Promise { - return this.sdk.get(`teams.listAll`); + return this.sdk.get(`teams.listAll?count=0`); } public members(teamId: string): Promise { - return this.sdk.get(`teams.members?teamId=${teamId}`); + return this.sdk.get(`teams.members?teamId=${teamId}&count=0`); } public info(teamId: string): Promise { diff --git a/src/rc-sdk/RcSdkUser.ts b/src/rc-sdk/RcSdkUser.ts index 5410a10..14198ef 100644 --- a/src/rc-sdk/RcSdkUser.ts +++ b/src/rc-sdk/RcSdkUser.ts @@ -74,7 +74,7 @@ export class RcSdkUser { public list(): Promise { return this.sdk.get( - `users.list?query={"type":"user"}&fields={"type":1,"createdAt":1}`, + `users.list?query={"type":"user"}&fields={"type":1,"createdAt":1}&count=0`, ); }