Fixed snakeCase in stats member count endpoint

refs 31c1d4f513

Still had the camel case 🙈
This commit is contained in:
Simon Backx 2022-03-31 17:09:28 +02:00
parent 31c1d4f513
commit 759e362a30
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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: [{