Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
76551ba6
Commit
76551ba6
authored
Mar 02, 2023
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove console logs
parent
405cb39f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
commonActions.js
planner-front/src/store/actions/commonActions.js
+0
-5
No files found.
planner-front/src/store/actions/commonActions.js
View file @
76551ba6
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment