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
4ea6a7bb
Commit
4ea6a7bb
authored
Dec 12, 2022
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#74
minor changes
parent
90a7ba1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
7 deletions
+31
-7
projects.ts
planner-api/src/routers/projects.ts
+0
-5
tasks.ts
planner-api/src/routers/tasks.ts
+1
-2
swwss[6~[6~[6~qq
swwss[6~[6~[6~qq
+30
-0
No files found.
planner-api/src/routers/projects.ts
View file @
4ea6a7bb
...
@@ -117,11 +117,6 @@ router.get('/user/:userId', async (req : Request, res : Response): Promise<Respo
...
@@ -117,11 +117,6 @@ router.get('/user/:userId', async (req : Request, res : Response): Promise<Respo
return
res
.
send
({
userProjects
})
return
res
.
send
({
userProjects
})
})
})
/** Add user to specific project */
/** Add user to specific project */
router
.
post
(
'/add-user/'
,
authAdminProject
,
async
(
req
:
Request
,
res
:
Response
):
Promise
<
Response
>=>
{
router
.
post
(
'/add-user/'
,
authAdminProject
,
async
(
req
:
Request
,
res
:
Response
):
Promise
<
Response
>=>
{
...
...
planner-api/src/routers/tasks.ts
View file @
4ea6a7bb
...
@@ -45,8 +45,7 @@ router.post('/', auth, async(req:Request, res:Response):Promise<Response>=>{
...
@@ -45,8 +45,7 @@ router.post('/', auth, async(req:Request, res:Response):Promise<Response>=>{
{
{
user
:{
id
:
user
.
id
},
user
:{
id
:
user
.
id
},
roleProject
:
MemberRole
.
WATCHER
,
roleProject
:
MemberRole
.
WATCHER
,
},
},
}
}
})
})
console
.
log
(
'watcherOfProject '
,
watcherOfProject
)
console
.
log
(
'watcherOfProject '
,
watcherOfProject
)
...
...
swwss[6~[6~[6~qq
0 → 100644
View file @
4ea6a7bb
[1mdiff --git a/planner-api/src/routers/projects.ts b/planner-api/src/routers/projects.ts[m
[1mindex 2f688c7..ccd5204 100644[m
[1m--- a/planner-api/src/routers/projects.ts[m
[1m+++ b/planner-api/src/routers/projects.ts[m
[36m@@ -117,11 +117,6 @@[m [mrouter.get('/user/:userId', async (req : Request, res : Response): Promise<Respo[m
return res.send({userProjects})[m
})[m
[m
[31m-[m
[31m-[m
[31m-[m
[31m-[m
[31m-[m
/** Add user to specific project */[m
[m
router.post('/add-user/', authAdminProject, async (req: Request, res: Response):Promise<Response>=>{[m
[1mdiff --git a/planner-api/src/routers/tasks.ts b/planner-api/src/routers/tasks.ts[m
[1mindex 410154c..f2a9ade 100644[m
[1m--- a/planner-api/src/routers/tasks.ts[m
[1m+++ b/planner-api/src/routers/tasks.ts[m
[36m@@ -45,8 +45,7 @@[m [mrouter.post('/', auth, async(req:Request, res:Response):Promise<Response>=>{[m
{[m
user:{id:user.id},[m
roleProject:MemberRole.WATCHER,[m
[31m- },[m
[31m- [m
[32m+[m[32m },[m[41m [m
}[m
})[m
console.log ('watcherOfProject ', watcherOfProject)[m
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