From 90104fa9b356866701bb0a99ccf9219c6512720d Mon Sep 17 00:00:00 2001 From: Ronald Langeveld Date: Fri, 7 Jul 2023 09:36:56 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20not=20all=20members?= =?UTF-8?q?=20being=20exported=20in=20CLI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs 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. --- 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..9133c0d70 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/'; From 529ba794de5efc38dfc6725aca997c5d31a2dc5d Mon Sep 17 00:00:00 2001 From: Ronald Langeveld Date: Fri, 7 Jul 2023 09:43:56 +0200 Subject: [PATCH 2/2] Added slash to endpoint. 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 9133c0d70..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?limit=all'; + let endpoint = '/members/upload/?limit=all'; if (semver.lt(version, '3.20.0')) { endpoint = '/members/csv/';