diff --git a/src/api/statistics/statistics.get.ts b/src/api/statistics/statistics.get.ts index 56dcb7810..f9cfc21fe 100644 --- a/src/api/statistics/statistics.get.ts +++ b/src/api/statistics/statistics.get.ts @@ -20,7 +20,7 @@ async function getContributions(): Promise { } export const useGetContributions = () => { - return useQuery(['activities'], () => getContributions()); + return useQuery(['contributions'], () => getContributions()); }; async function getClassroomExchanges(): Promise { @@ -34,7 +34,7 @@ async function getClassroomExchanges(): Promise { } export const useGetClassroomExchanges = () => { - return useQuery(['activities', 'comments'], () => getClassroomExchanges()); + return useQuery(['classroom_exchanges'], () => getClassroomExchanges()); }; async function getStudentAccounts(): Promise { @@ -48,7 +48,7 @@ async function getStudentAccounts(): Promise { } export const useGetStudentAccounts = () => { - return useQuery(['student'], () => getStudentAccounts()); + return useQuery(['student_accounts'], () => getStudentAccounts()); }; async function getConnectionTimes(): Promise { @@ -62,7 +62,7 @@ async function getConnectionTimes(): Promise { } export const useGetConnectionTimes = () => { - return useQuery(['analytic_sesssion'], () => getConnectionTimes()); + return useQuery(['connection_times'], () => getConnectionTimes()); }; async function getConnectionCounts(): Promise { @@ -76,5 +76,5 @@ async function getConnectionCounts(): Promise { } export const useGetConnectionCounts = () => { - return useQuery(['analytic_sesssion'], () => getConnectionCounts()); + return useQuery(['connection_counts'], () => getConnectionCounts()); };