Skip to content

Commit

Permalink
use checkpoint pagination for GET connections
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya18101 committed Feb 27, 2025
1 parent a82ed70 commit d4b8fed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/tools/auth0/handlers/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class ConnectionsHandler extends DefaultAPIHandler {
if (this.existing) return this.existing;

const connections = await paginate<Connection>(this.client.connections.getAll, {
paginate: true,
checkpoint: true,
include_totals: true,
});

Expand Down Expand Up @@ -177,7 +177,7 @@ export default class ConnectionsHandler extends DefaultAPIHandler {
});

const existingConnections = await paginate<Connection>(this.client.connections.getAll, {
paginate: true,
checkpoint: true,
include_totals: true,
});

Expand Down
4 changes: 2 additions & 2 deletions src/tools/auth0/handlers/databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class DatabaseHandler extends DefaultAPIHandler {

const connections = await paginate<Connection>(this.client.connections.getAll, {
strategy: [GetConnectionsStrategyEnum.auth0],
paginate: true,
checkpoint: true,
include_totals: true,
});
this.existing = connections;
Expand Down Expand Up @@ -183,7 +183,7 @@ export default class DatabaseHandler extends DefaultAPIHandler {
this.client.connections.getAll,
{
strategy: [GetConnectionsStrategyEnum.auth0],
paginate: true,
checkpoint: true,
include_totals: true,
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/auth0/handlers/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export default class OrganizationsHandler extends DefaultHandler {
const existing = await this.getType();

const existingConnections = await paginate<Connection>(this.client.connections.getAll, {
paginate: true,
checkpoint: true,
include_totals: true,
});

Expand Down

0 comments on commit d4b8fed

Please sign in to comment.