Skip to content

Commit

Permalink
Fixed issue where all only a few subscribers where exported via CSV. (#…
Browse files Browse the repository at this point in the history
…7925)

closes #7850

- export subscribers to CSV now uses .findAll() instead of .findPage()
  • Loading branch information
vivekannan authored and kirrg001 committed Feb 8, 2017
1 parent 282280f commit 0e72fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/api/subscribers.js
Expand Up @@ -239,8 +239,8 @@ subscribers = {

// Export data, otherwise send error 500
function exportSubscribers() {
return dataProvider.Subscriber.findPage(options).then(function (data) {
return formatCSV(data.subscribers);
return dataProvider.Subscriber.findAll(options).then(function (data) {
return formatCSV(data.toJSON(options));
}).catch(function (error) {
return Promise.reject(new errors.InternalServerError(error.message || error));
});
Expand Down

0 comments on commit 0e72fdc

Please sign in to comment.