Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
Fixed issue with pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastany committed Mar 30, 2021
1 parent 033f893 commit af0166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth0/handlers/organizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default class OrganizationsHandler extends DefaultHandler {
}

try {
const organizations = await this.client.organizations.getAll({ pagination: true });
const organizations = await this.client.organizations.getAll({ paginate: true });
for (let index = 0; index < organizations.length; index++) {
const connections = await this.client.organizations.connections.get({ id: organizations[index].id });
organizations[index].connections = connections;
Expand Down

0 comments on commit af0166b

Please sign in to comment.