Skip to content

Commit 6c1db3d

Browse files
authored
Use checkpoint pagination for GET connections (#1041)
* use checkpoint pagination for GET connections * fix e2e integration tests
1 parent a82ed70 commit 6c1db3d

8 files changed

+10255
-11231
lines changed

src/tools/auth0/handlers/connections.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default class ConnectionsHandler extends DefaultAPIHandler {
144144
if (this.existing) return this.existing;
145145

146146
const connections = await paginate<Connection>(this.client.connections.getAll, {
147-
paginate: true,
147+
checkpoint: true,
148148
include_totals: true,
149149
});
150150

@@ -177,7 +177,7 @@ export default class ConnectionsHandler extends DefaultAPIHandler {
177177
});
178178

179179
const existingConnections = await paginate<Connection>(this.client.connections.getAll, {
180-
paginate: true,
180+
checkpoint: true,
181181
include_totals: true,
182182
});
183183

src/tools/auth0/handlers/databases.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default class DatabaseHandler extends DefaultAPIHandler {
152152

153153
const connections = await paginate<Connection>(this.client.connections.getAll, {
154154
strategy: [GetConnectionsStrategyEnum.auth0],
155-
paginate: true,
155+
checkpoint: true,
156156
include_totals: true,
157157
});
158158
this.existing = connections;
@@ -183,7 +183,7 @@ export default class DatabaseHandler extends DefaultAPIHandler {
183183
this.client.connections.getAll,
184184
{
185185
strategy: [GetConnectionsStrategyEnum.auth0],
186-
paginate: true,
186+
checkpoint: true,
187187
include_totals: true,
188188
}
189189
);

src/tools/auth0/handlers/organizations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export default class OrganizationsHandler extends DefaultHandler {
365365
const existing = await this.getType();
366366

367367
const existingConnections = await paginate<Connection>(this.client.connections.getAll, {
368-
paginate: true,
368+
checkpoint: true,
369369
include_totals: true,
370370
});
371371

0 commit comments

Comments
 (0)