mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
- Pulls logic out of Ghost core and into the Analytics repository. - Test coverage has increased for the stats service - Interface simplified
23 lines
525 B
JavaScript
23 lines
525 B
JavaScript
const statsService = require('../../services/stats');
|
|
|
|
module.exports = {
|
|
docName: 'stats',
|
|
memberCountHistory: {
|
|
permissions: {
|
|
docName: 'members',
|
|
method: 'browse'
|
|
},
|
|
async query() {
|
|
return await statsService.getMemberCountHistory();
|
|
}
|
|
},
|
|
mrr: {
|
|
permissions: {
|
|
docName: 'members',
|
|
method: 'browse'
|
|
},
|
|
async query() {
|
|
return await statsService.getMRRHistory();
|
|
}
|
|
}
|
|
};
|