#167 remove repeat code in router/projects /my

parent 27d62c02
......@@ -30,7 +30,6 @@ router.get('/my',auth, async (req:Request, res:Response): Promise<Response>=> {
.from(Project, "project")
.select(["project.id"])
.leftJoinAndSelect('project.members', 'member')
.loadRelationCountAndMap('project.tasks', 'project.tasks')
.leftJoinAndSelect('member.user', 'user' )
.where('member.userId = :userId',{userId:user.id})
.getMany()
......
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