remove console logs

parent 405cb39f
...@@ -19,27 +19,22 @@ export const hideNotification = () => { ...@@ -19,27 +19,22 @@ export const hideNotification = () => {
/** weekDataStart, recieves userId returns type WEEK_DATA_START_REQUEST*/
const fetchWeekDataStartRequest = () => { const fetchWeekDataStartRequest = () => {
return { type: FETCH_WEEK_DATA_START_REQUEST } return { type: FETCH_WEEK_DATA_START_REQUEST }
} }
/** weekDataStart, recieves userId returns type WEEK_DATA_START_SUCCESS*/
const fetchWeekDataStartSuccess = (weekData) => { const fetchWeekDataStartSuccess = (weekData) => {
return { type: FETCH_WEEK_DATA_START_SUCCESS, weekData } return { type: FETCH_WEEK_DATA_START_SUCCESS, weekData }
} }
/** weekDataStart, recieves userId returns type WEEK_DATA_START_FAILURE*/
const fetchWeekDataStartFailure = (error) => { const fetchWeekDataStartFailure = (error) => {
return { type: FETCH_WEEK_DATA_START_FAILURE, error } return { type: FETCH_WEEK_DATA_START_FAILURE, error }
} }
/**fetchWeekDataStart, recieves userId ,make GET request to 'tasks/week-data-start/{userId}, recieves weekdata */
export const fetchWeekDataStart = (userId) => { export const fetchWeekDataStart = (userId) => {
return async (dispatch) => { return async (dispatch) => {
dispatch(fetchWeekDataStartRequest()); dispatch(fetchWeekDataStartRequest());
try { try {
console.log('fetchWeekDataStart front', userId)
const response = await axios.get(`/tasks/week-data-start/${userId}`); const response = await axios.get(`/tasks/week-data-start/${userId}`);
dispatch(fetchCalendarTasksSuccess(response.data.tasks)) dispatch(fetchCalendarTasksSuccess(response.data.tasks))
dispatch(fetchAllUserProjectsSuccess(response.data.projects)); dispatch(fetchAllUserProjectsSuccess(response.data.projects));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment