1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/applications/@me.ts b/src/api/routes/applications/@me.ts
index 1c4a7530..7e315a56 100644
--- a/src/api/routes/applications/@me.ts
+++ b/src/api/routes/applications/@me.ts
@@ -41,7 +41,7 @@ router.get(
async (req: Request, res: Response) => {
const app = await Application.findOneOrFail({
where: { id: req.user_id },
- relations: ["owner", "bot"],
+ relations: { owner: true, bot: true },
});
return res.json(app);
@@ -66,7 +66,7 @@ router.patch(
const app = await Application.findOneOrFail({
where: { id: req.user_id },
- relations: ["owner", "bot"],
+ relations: { owner: true, bot: true },
});
if (body.icon) {
|