diff --git "a/src/api/routes/applications/\043id/index.ts" "b/src/api/routes/applications/\043id/index.ts" index be8c3ba..a16b18a 100644 --- "a/src/api/routes/applications/\043id/index.ts" +++ "b/src/api/routes/applications/\043id/index.ts" @@ -7,7 +7,6 @@ router.get("/", route({}), async (req: Request, res: Response) => { //TODO let results = await Application.findOne({where: {id: req.params.id}, relations: ["owner", "bot"] }); - //debugger; res.json(results).status(200); }); diff --git a/src/api/routes/applications/index.ts b/src/api/routes/applications/index.ts index c9be113..41ce35b 100644 --- a/src/api/routes/applications/index.ts +++ b/src/api/routes/applications/index.ts @@ -11,7 +11,7 @@ router.get("/", route({}), async (req: Request, res: Response) => { //TODO - let results = await Application.find({where: {owner: {id: req.user_id}}, relations: ["owner"] }); + let results = await Application.find({where: {owner: {id: req.user_id}}, relations: ["owner", "bot"] }); res.json(results).status(200); });