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

Commit

Permalink
Merge pull request #113 from auth0-extensions/dxex-1038-connections-p…
Browse files Browse the repository at this point in the history
…agination

[DXEX-1038] fix: use pagination in API calls
  • Loading branch information
shushen authored Nov 5, 2020
2 parents aee8639 + 8c87c69 commit 639393e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0-source-control-extension-tools",
"version": "4.1.8",
"version": "4.1.9",
"description": "Supporting tools for the Source Control extensions",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/auth0/handlers/connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class ConnectionsHandler extends DefaultHandler {

// Convert enabled_clients by name to the id
const clients = await this.client.clients.getAll({ paginate: true });
const existingConexions = await this.client.connections.getAll();
const existingConexions = await this.client.connections.getAll({ paginate: true });
const formatted = assets.connections.map(connection => (
{
...connection,
Expand Down
4 changes: 2 additions & 2 deletions src/auth0/handlers/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class PageHandler extends DefaultHandler {
}

async updateLoginPage(page) {
const globalClient = await this.client.clients.getAll({ is_global: true });
const globalClient = await this.client.clients.getAll({ is_global: true, paginate: true });

if (!globalClient[0]) {
throw new Error('Unable to find global client id when trying to update the login page');
Expand Down Expand Up @@ -86,7 +86,7 @@ export default class PageHandler extends DefaultHandler {
const pages = [];

// Login page is handled via the global client
const globalClient = await this.client.clients.getAll({ is_global: true });
const globalClient = await this.client.clients.getAll({ is_global: true, paginate: true });
if (!globalClient[0]) {
throw new Error('Unable to find global client id when trying to dump the login page');
}
Expand Down

0 comments on commit 639393e

Please sign in to comment.