#74 minor changes

parent 90a7ba1d
...@@ -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>=>{
......
...@@ -46,7 +46,6 @@ router.post('/', auth, async(req:Request, res:Response):Promise<Response>=>{ ...@@ -46,7 +46,6 @@ 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)
......
diff --git a/planner-api/src/routers/projects.ts b/planner-api/src/routers/projects.ts
index 2f688c7..ccd5204 100644
--- a/planner-api/src/routers/projects.ts
+++ b/planner-api/src/routers/projects.ts
@@ -117,11 +117,6 @@ router.get('/user/:userId', async (req : Request, res : Response): Promise<Respo
return res.send({userProjects})
})

-
-
-
-
-
/** Add user to specific project */

router.post('/add-user/', authAdminProject, async (req: Request, res: Response):Promise<Response>=>{
diff --git a/planner-api/src/routers/tasks.ts b/planner-api/src/routers/tasks.ts
index 410154c..f2a9ade 100644
--- a/planner-api/src/routers/tasks.ts
+++ b/planner-api/src/routers/tasks.ts
@@ -45,8 +45,7 @@ router.post('/', auth, async(req:Request, res:Response):Promise<Response>=>{
{
user:{id:user.id},
roleProject:MemberRole.WATCHER,
- },
- 
+ }, 
}
})
console.log ('watcherOfProject ', watcherOfProject)
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