Add agent reports

This commit is contained in:
Pranav
2024-02-13 18:31:07 -08:00
parent cc80e4122a
commit 75998945a5
5 changed files with 40 additions and 16 deletions
@@ -8,7 +8,7 @@ export const state = {
};
export const getters = {
getAgentSummaryReport(_state) {
getAgentSummaryReports(_state) {
return _state.agentSummaryReports;
},
getTeamSummaryReports(_state) {
@@ -25,10 +25,10 @@ export const actions = {
// Ignore error
}
},
async getAgentSummaryReports({ commit }, params) {
async fetchAgentSummaryReports({ commit }, params) {
try {
const response = await SummaryReportsAPI.getAgentReports(params);
commit('setAgentSummayReport', response.data);
commit('setAgentSummaryReport', response.data);
} catch (error) {
// Ignore error
}