Skip to content

Commit

Permalink
fix(backup): fixed exporting all members
Browse files Browse the repository at this point in the history
closes 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.

Co-authored-by: Daniel Lockyer <[email protected]>
  • Loading branch information
ronaldlangeveld and daniellockyer authored Jul 7, 2023
1 parent a1d6a93 commit daf4798
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 daf4798

Please sign in to comment.