From 455d7432cfc8384bbbea4405cf7f55e0afb0e2b0 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 10 Aug 2022 03:52:03 -0600 Subject: It works now... I guess Co-authored-by: TheArcaneBrony --- src/api/routes/applications/#id/index.ts | 1 - src/api/routes/applications/index.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/api/routes/applications/#id/index.ts b/src/api/routes/applications/#id/index.ts index be8c3ba4..a16b18a9 100644 --- a/src/api/routes/applications/#id/index.ts +++ b/src/api/routes/applications/#id/index.ts @@ -7,7 +7,6 @@ const router: Router = Router(); 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 c9be1131..41ce35b5 100644 --- a/src/api/routes/applications/index.ts +++ b/src/api/routes/applications/index.ts @@ -11,7 +11,7 @@ export interface ApplicationCreateSchema { 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); }); -- cgit 1.4.1