123 added set up on router.get(user-tasks)

parent 05718ad8
...@@ -387,12 +387,13 @@ router.get('/users-tasks', auth,async (req: Request, res: Response):Promise<Resp ...@@ -387,12 +387,13 @@ router.get('/users-tasks', auth,async (req: Request, res: Response):Promise<Resp
{ relations:{ { relations:{
members:true, members:true,
tasks:{ tasks:{
author:true, author:true,
executor:true executor:true
} }
}, },
where:{ where:{
members:{ members:{
roleProject:Not(Equal(MemberRole.WATCHER)),
user:{ user:{
id:user.id id:user.id
}, },
......
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