Skip to content

Commit

Permalink
feat(get-sull-space): Export drafts when deliveryClient is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya committed Nov 29, 2016
1 parent 2e0d470 commit f008c92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/get/get-full-source-space.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let pageLimit = MAX_ALLOWED_LIMIT
*/
export default function getFullSourceSpace ({
managementClient,
deliveryClient,
spaceId,
skipContentModel,
skipContent,
Expand All @@ -23,7 +24,7 @@ export default function getFullSourceSpace ({
.then((space) => {
return Promise.props({
contentTypes: skipContentModel ? [] : pagedGet(space, 'getContentTypes').then(extractItems),
entries: skipContent ? [] : pagedGet(space, 'getEntries').then(extractItems),
entries: skipContent ? [] : pagedGet(deliveryClient || space, 'getEntries').then(extractItems),
assets: skipContent ? [] : pagedGet(space, 'getAssets').then(extractItems),
locales: skipContentModel ? [] : pagedGet(space, 'getLocales').then(extractItems),
webhooks: skipWebhooks ? [] : pagedGet(space, 'getWebhooks').then(extractItems),
Expand Down

0 comments on commit f008c92

Please sign in to comment.