fix: list all

This commit is contained in:
Hugo Renard 2022-10-19 16:07:50 +02:00
parent 4ce7b036b7
commit 1a9448fca5
Signed by: hougo
GPG key ID: 3A285FD470209C59
3 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ export class RcSdkRole {
}
public list(): Promise<IRoleListResponse> {
return this.sdk.get(`roles.list`);
return this.sdk.get(`roles.list?count=0`);
}
public create(body: IRoleCreate): Promise<IRoleResponse> {

View file

@ -105,11 +105,11 @@ export class RcSdkTeam {
}
public listAll(): Promise<ITeamListAllResponse> {
return this.sdk.get(`teams.listAll`);
return this.sdk.get(`teams.listAll?count=0`);
}
public members(teamId: string): Promise<ITeamMembersResponse> {
return this.sdk.get(`teams.members?teamId=${teamId}`);
return this.sdk.get(`teams.members?teamId=${teamId}&count=0`);
}
public info(teamId: string): Promise<ITeamInfoResponse> {

View file

@ -74,7 +74,7 @@ export class RcSdkUser {
public list(): Promise<IUserListResponse> {
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`,
);
}