File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ export async function getAdminService() {
2727export async function getGithubUsersFromGoogle ( ) : Promise < Set < string > > {
2828 const service = await mod . getAdminService ( )
2929 let githubAccounts = new Set < string > ( )
30- let pageToken = null ;
30+ let pageToken = null
3131
3232 do {
33- let params = {
33+ let params = {
3434 customer : 'my_customer' ,
3535 maxResults : 250 ,
3636 projection : 'custom' ,
3737 fields : 'users(customSchemas/Accounts/github(value)),nextPageToken' ,
3838 customFieldMask : 'Accounts' ,
39- pageToken : pageToken
40- }
41- const userList = await service . users . list ( params )
42- pageToken = userList . data . nextPageToken
43- githubAccounts = new Set ( [ ...githubAccounts , ...formatUserList ( userList . data . users ) ] )
39+ pageToken : pageToken ,
40+ }
41+ const userList = await service . users . list ( params )
42+ pageToken = userList . data . nextPageToken
43+ githubAccounts = new Set ( [ ...githubAccounts , ...formatUserList ( userList . data . users ) ] )
4444 } while ( pageToken != null )
4545 return githubAccounts
4646}
You can’t perform that action at this time.
0 commit comments