Skip to content

Commit

Permalink
[6.x] Fix "Export Everything" to properly constrain types (#21402) (#…
Browse files Browse the repository at this point in the history
…21417)

Backports the following commits to 6.x:
 - Fix "Export Everything" to properly constrain types  (#21402)
  • Loading branch information
legrego authored Jul 30, 2018
1 parent 0307877 commit 2e2849b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function registerScrollForExportRoute(server) {
const savedObjectsClient = req.getSavedObjectsClient();
const objects = await findAll(savedObjectsClient, {
perPage: 1000,
typesToInclude: req.payload.typesToInclude
type: req.payload.typesToInclude
});
const response = objects.map(hit => {
const type = hit.type;
Expand Down

0 comments on commit 2e2849b

Please sign in to comment.