From 4718d55630c0e241e29bb230fd1437a1aa43db54 Mon Sep 17 00:00:00 2001 From: Vivek Kannan Date: Wed, 8 Feb 2017 16:07:09 +0530 Subject: [PATCH] Fixed issue where all only a few subscribers where exported via CSV. (#7925) closes #7850 - export subscribers to CSV now uses .findAll() instead of .findPage() --- core/server/api/subscribers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/api/subscribers.js b/core/server/api/subscribers.js index 2f42e4e747..7cc10f901f 100644 --- a/core/server/api/subscribers.js +++ b/core/server/api/subscribers.js @@ -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})); });