#110 router tasks/my now search only task where user is executor fix

parent 85d1e3f9
...@@ -181,7 +181,7 @@ router.get('/user/:userId', async (req: Request, res: Response):Promise<Response ...@@ -181,7 +181,7 @@ router.get('/user/:userId', async (req: Request, res: Response):Promise<Response
}) })
/**check tasks of current user where he is author or executor, search by id*/ /**check tasks of current user where he is executor, search by id*/
router.get('/my',auth, async (req: Request, res: Response):Promise<Response>=>{ router.get('/my',auth, async (req: Request, res: Response):Promise<Response>=>{
const user = req.body.user const user = req.body.user
const tasks = await dataSource const tasks = await dataSource
...@@ -189,7 +189,6 @@ router.get('/my',auth, async (req: Request, res: Response):Promise<Response>=>{ ...@@ -189,7 +189,6 @@ router.get('/my',auth, async (req: Request, res: Response):Promise<Response>=>{
.find({ .find({
relations:{ relations:{
executor:true, executor:true,
// author:true,
}, },
where:[ where:[
{ {
......
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