import axios from '@/base/api/axios'
import { camelizeKeys } from '@/utils/utils'

export default {
  async activityHistory ({ group, user, dateAfter, dateBefore }) {
    return (await axios.get(
      '/api/stats/activity-history/',
      { params: camelizeKeys({ group, user, dateAfter, dateBefore }) },
    )).data
  },
}

import axios from '@/base/api/axios'
import { underscorizeKeys } from '@/utils/utils'

export default {
  async activityHistory ({ group, user, dateAfter, dateBefore }) {
    return (await axios.get(
      '/api/stats/activity-history/',
      { params: underscorizeKeys({ group, user, dateAfter, dateBefore }) },
    )).data
  },
}

Fix brain error camelize -> underscoreize
Fix brain error camelize -> underscoreize

Meant the statistics was not being filtered for date range
