summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-02 21:19:52 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-02 21:19:59 +1000
commitb0cd30e008fc8157b3d7418b8be99801739aa616 (patch)
tree7b9ce4bea4e3e47797cc46c9875494c7f70b8c7a
parent...try again (diff)
downloadserver-b0cd30e008fc8157b3d7418b8be99801739aa616.tar.xz
...and again
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts5
1 files 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);