recent action API added
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const queryKeys = {
|
||||
dashboard: ['dashboard']
|
||||
dashboard: ['dashboard'],
|
||||
recentAction: ['recent-action']
|
||||
}
|
||||
|
||||
export default queryKeys
|
||||
@@ -36,8 +36,8 @@ const getAuxEnd = (path) => {
|
||||
// localStorage.clear();
|
||||
// window.location.href = `/login?sessionExpired=true`;
|
||||
}).catch(err => {
|
||||
// throw new Error(err.response.data.message);
|
||||
return err
|
||||
throw new Error(err.response.data.message);
|
||||
// return err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -54,3 +54,8 @@ export const loginUser = (reqData) => {
|
||||
export const accountDashboard = () => {
|
||||
return getAuxEnd(`/panel/account/dash`)
|
||||
}
|
||||
|
||||
// FUNCTION TO GET DASHBOARD RECENT ACTIONS SECTION
|
||||
export const recentActions = () => {
|
||||
return getAuxEnd(`/panel/account/actions`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user