From 27ec60b9fa14ec61e404fed1aff5dfc514110948 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 2 Sep 2022 21:19:52 +1000 Subject: ...and again --- api/src/routes/channels/#channel_id/messages/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index 1faf9a3b..3c014f5c 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -106,8 +106,7 @@ router.get("/", async (req: Request, res: Response) => { order: { timestamp: "DESC" }, take: limit, where: { channel_id }, - relations: ["author", "webhook", "application", "mentions", "mention_roles", "mention_channels", "sticker_items", "attachments"], - loadRelationIds: true, + relations: ["author", "webhook", "application", "mentions", "mention_roles", "mention_channels", "sticker_items", "attachments"] }; if (after) { @@ -124,7 +123,7 @@ router.get("/", async (req: Request, res: Response) => { LessThan((BigInt(around) + BigInt(halfLimit)).toString()) ]; - return res.json([]); + return res.json([]); // TODO: fix around } const messages = await Message.find(query); -- cgit 1.4.1