mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 16:38:22 +03:00
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()
This commit is contained in:
parent
e6662b6929
commit
4718d55630
@ -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}));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user