diff --git a/src/infrastructure/RequestHelper.js b/src/infrastructure/RequestHelper.js index b300f309..4c39b473 100644 --- a/src/infrastructure/RequestHelper.js +++ b/src/infrastructure/RequestHelper.js @@ -70,7 +70,7 @@ async function getPaginated(service, endpoint, options = {}) { const data = [...response.body, ...more]; - if(!queryOptions.page && pagination) { + if (!queryOptions.page && pagination) { return { data, pagination: { @@ -79,7 +79,8 @@ async function getPaginated(service, endpoint, options = {}) { current: response.headers['x-page'], previous: response.headers['x-prev-page'], total: response.headers['x-total-pages'], - } + }, + }; } return data;