Skip to content

Commit

Permalink
Update URL cursor
Browse files Browse the repository at this point in the history
My careless mistake resulted me using .cursor when its .nextCursor
  • Loading branch information
jeffplays2005 committed Oct 6, 2024
1 parent 42fc766 commit a30a623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/tooling/update-google-sheet-members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ async function getAllUsers(token: string): Promise<CombinedUserData[]> {
const allUsers: CombinedUserData[] = []
let fetchedUsers = await fetchUsers(token)
allUsers.push(...fetchedUsers.data)
while (fetchedUsers.cursor) {
fetchedUsers = await fetchUsers(token, fetchedUsers.cursor)
while (fetchedUsers.nextCursor) {
fetchedUsers = await fetchUsers(token, fetchedUsers.nextCursor)
allUsers.push(...fetchedUsers.data)
}
return allUsers
Expand Down

0 comments on commit a30a623

Please sign in to comment.