It works now... I guess
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
This commit is contained in:
parent
245127f651
commit
455d7432cf
@ -7,7 +7,6 @@ const router: Router = Router();
|
|||||||
router.get("/", route({}), async (req: Request, res: Response) => {
|
router.get("/", route({}), async (req: Request, res: Response) => {
|
||||||
//TODO
|
//TODO
|
||||||
let results = await Application.findOne({where: {id: req.params.id}, relations: ["owner", "bot"] });
|
let results = await Application.findOne({where: {id: req.params.id}, relations: ["owner", "bot"] });
|
||||||
//debugger;
|
|
||||||
res.json(results).status(200);
|
res.json(results).status(200);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ export interface ApplicationCreateSchema {
|
|||||||
|
|
||||||
router.get("/", route({}), async (req: Request, res: Response) => {
|
router.get("/", route({}), async (req: Request, res: Response) => {
|
||||||
//TODO
|
//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);
|
res.json(results).status(200);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user