summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorChrisChrome <christophercookman@gmail.com>2022-08-10 03:52:03 -0600
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-18 22:43:14 +1100
commit455d7432cfc8384bbbea4405cf7f55e0afb0e2b0 (patch)
tree1c86d2a40d7ca9f67eb4f549117f1a2bb8bc65bf /src
parentAdd basic developer panel functionality - doesn't work yet (diff)
downloadserver-455d7432cfc8384bbbea4405cf7f55e0afb0e2b0.tar.xz
It works now... I guess
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/applications/#id/index.ts1
-rw-r--r--src/api/routes/applications/index.ts2
2 files changed, 1 insertions, 2 deletions
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);
 });