remove console logs

parent 405cb39f
......@@ -19,27 +19,22 @@ export const hideNotification = () => {
/** weekDataStart, recieves userId returns type WEEK_DATA_START_REQUEST*/
const fetchWeekDataStartRequest = () => {
return { type: FETCH_WEEK_DATA_START_REQUEST }
}
/** weekDataStart, recieves userId returns type WEEK_DATA_START_SUCCESS*/
const fetchWeekDataStartSuccess = (weekData) => {
return { type: FETCH_WEEK_DATA_START_SUCCESS, weekData }
}
/** weekDataStart, recieves userId returns type WEEK_DATA_START_FAILURE*/
const fetchWeekDataStartFailure = (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) => {
return async (dispatch) => {
dispatch(fetchWeekDataStartRequest());
try {
console.log('fetchWeekDataStart front', userId)
const response = await axios.get(`/tasks/week-data-start/${userId}`);
dispatch(fetchCalendarTasksSuccess(response.data.tasks))
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