mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
Fixed snakeCase in stats member count endpoint
refs 31c1d4f513
Still had the camel case 🙈
This commit is contained in:
parent
31c1d4f513
commit
759e362a30
@ -138,7 +138,7 @@ module.exports = function apiRoutes() {
|
||||
router.get('/members/:id/signin_urls', mw.authAdminApi, http(api.memberSigninUrls.read));
|
||||
|
||||
// ## Stats
|
||||
router.get('/stats/member-count', mw.authAdminApi, http(api.stats.memberCountHistory));
|
||||
router.get('/stats/member_count', mw.authAdminApi, http(api.stats.memberCountHistory));
|
||||
|
||||
// ## Labels
|
||||
router.get('/labels', mw.authAdminApi, http(api.labels.browse));
|
||||
|
@ -12,7 +12,7 @@ describe('Stats API', function () {
|
||||
|
||||
it('Can fetch member count history', async function () {
|
||||
await agent
|
||||
.get(`/stats/member-count`)
|
||||
.get(`/stats/member_count`)
|
||||
.expectStatus(200)
|
||||
.matchBodySnapshot({
|
||||
stats: [{
|
||||
|
Loading…
Reference in New Issue
Block a user