Skip to content

Commit

Permalink
πŸ› Fixed not all members being exported in CLI
Browse files Browse the repository at this point in the history
refs TryGhost/Product#3578

- The export API, by default is limited to 15 members.
- This sets the API endpoint to query all members via the CLI.
  • Loading branch information
ronaldlangeveld committed Jul 7, 2023
1 parent a1d6a93 commit 90104fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/import/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async function downloadContentExport(version, url, auth, outputFile) {

async function downloadMembersExport(version, url, auth, outputFile) {
const authOpts = await getAuthOpts(version, url, auth);
let endpoint = '/members/upload/';
let endpoint = '/members/upload?limit=all';

if (semver.lt(version, '3.20.0')) {
endpoint = '/members/csv/';
Expand Down

0 comments on commit 90104fa

Please sign in to comment.