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 e6662b6 commit 4718d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/api/subscribers.js
Original file line number Diff line number Diff line change
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 (err) {
return Promise.reject(new errors.GhostError({err: err}));
});
Expand Down

0 comments on commit 4718d55

Please sign in to comment.