Skip to content

Commit

Permalink
Merge pull request #401 from auth0/ESD-17791/pagination-orgs
Browse files Browse the repository at this point in the history
fix: stop pagination if no next exists
  • Loading branch information
TwelveNights committed Jan 26, 2022
2 parents d4069e8 + b580a6f commit f2b0bb8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [7.3.4] - 2022-01-26
### Fixed
- Fix pagination [#401]

## [7.3.3] - 2022-01-26
### Fixed
- Fix pagination [#400]
Expand Down Expand Up @@ -400,8 +404,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#367]: https://github.com/auth0/auth0-deploy-cli/issues/367
[#379]: https://github.com/auth0/auth0-deploy-cli/issues/379
[#400]: https://github.com/auth0/auth0-deploy-cli/issues/400
[#401]: https://github.com/auth0/auth0-deploy-cli/issues/401

[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.3...HEAD
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.4...HEAD
[7.3.4]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.3...v7.3.4
[7.3.3]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.2...v7.3.3
[7.3.2]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.1...v7.3.2
[7.3.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.0...v7.3.1
Expand Down
4 changes: 2 additions & 2 deletions 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-deploy-cli",
"version": "7.3.3",
"version": "7.3.4",
"description": "A command line tool for deploying updates to your Auth0 tenant",
"main": "lib/index.js",
"bin": {
Expand Down
6 changes: 2 additions & 4 deletions src/tools/auth0/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ function checkpointPaginator(client, target, name) {
})
.promise();

const entities = getEntity(rsp);

if (entities.length === 0) {
data.push(...getEntity(rsp));
if (!rsp.next) {
done = true;
} else {
data.push(...entities);
newArgs.from = rsp.next;
}
}
Expand Down

0 comments on commit f2b0bb8

Please sign in to comment.