core/server/api/v0.1/subscribers.js
function exportSubscribers() {
            return models.Subscriber.findAll(options).then((data) => {
                return formatCSV(data.toJSON(options));
            }).catch((err) => {
                return Promise.reject(new common.errors.GhostError({err: err}));
            });
        }
function exportSubscribers() {
            return models.Subscriber.findAll(options).then((data) => {
                return formatCSV(data.toJSON(options));
            }).catch((err) => {
                return Promise.reject(new common.errors.GhostError({err: err}));
            });
        }
function exportSubscribers ( ) { return models . Subscriber . findAll ( options ) . then ( ( data ) => { return formatCSV ( data . toJSON ( options ) ) ; } ) . catch ( ( err ) => { return Promise . reject ( new common . errors . GhostError ( { err : err } ) ) ; } ) ; }
Export data, otherwise send error 500
Export data otherwise send error 500