1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-22 19:23:22 +00:00

group paging cleanup

This commit is contained in:
Kyle Spearrin
2019-03-26 08:02:09 -04:00
parent d5907477df
commit d7412410f2
2 changed files with 4 additions and 4 deletions

2
jslib

Submodule jslib updated: 593870e936...a884f77938

View File

@@ -136,11 +136,11 @@ export class GSuiteDirectoryService extends BaseDirectoryService implements Dire
p = Object.assign({ pageToken: nextPageToken }, this.authParams); p = Object.assign({ pageToken: nextPageToken }, this.authParams);
const res = await this.service.groups.list(p); const res = await this.service.groups.list(p);
nextPageToken = res.data.nextPageToken;
if (res.status !== 200) { if (res.status !== 200) {
throw new Error('Group list API failed: ' + res.statusText); throw new Error('Group list API failed: ' + res.statusText);
} }
nextPageToken = res.data.nextPageToken;
if (res.data.groups != null) { if (res.data.groups != null) {
for (const group of res.data.groups) { for (const group of res.data.groups) {
if (!this.filterOutResult(setFilter, group.name)) { if (!this.filterOutResult(setFilter, group.name)) {