From daf4798b7060322121cbbf386400ff1972166a29 Mon Sep 17 00:00:00 2001 From: Ronald Langeveld Date: Fri, 7 Jul 2023 09:50:06 +0200 Subject: [PATCH] fix(backup): fixed exporting all members closes https://github.com/TryGhost/Product/issues/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 --- lib/tasks/import/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/import/api.js b/lib/tasks/import/api.js index 83bacfe23..4a9db4344 100644 --- a/lib/tasks/import/api.js +++ b/lib/tasks/import/api.js @@ -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/';