diff options
author | ChrisChrome <christophercookman@gmail.com> | 2022-08-10 03:52:03 -0600 |
---|---|---|
committer | ChrisChrome <christophercookman@gmail.com> | 2022-08-10 03:52:03 -0600 |
commit | 4fe40c2a2016cce4278fbb40093c38145b36e0ea (patch) | |
tree | 5e6581d170a83e81ce093b31f49c3c3e858f8fdb | |
parent | Add basic developer panel functionality - doesn't work yet (diff) | |
download | server-4fe40c2a2016cce4278fbb40093c38145b36e0ea.tar.xz |
It works now... I guess
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rw-r--r-- | api/src/routes/applications/#id/index.ts | 1 | ||||
-rw-r--r-- | api/src/routes/applications/index.ts | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/api/src/routes/applications/#id/index.ts b/api/src/routes/applications/#id/index.ts index be8c3ba4..a16b18a9 100644 --- a/api/src/routes/applications/#id/index.ts +++ b/api/src/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/api/src/routes/applications/index.ts b/api/src/routes/applications/index.ts index c9be1131..41ce35b5 100644 --- a/api/src/routes/applications/index.ts +++ b/api/src/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); }); |