...and again

This commit is contained in:
Madeline 2022-09-02 21:19:52 +10:00
parent a599e1ac57
commit 27ec60b9fa

View File

@ -106,8 +106,7 @@ router.get("/", async (req: Request, res: Response) => {
order: { timestamp: "DESC" }, order: { timestamp: "DESC" },
take: limit, take: limit,
where: { channel_id }, where: { channel_id },
relations: ["author", "webhook", "application", "mentions", "mention_roles", "mention_channels", "sticker_items", "attachments"], relations: ["author", "webhook", "application", "mentions", "mention_roles", "mention_channels", "sticker_items", "attachments"]
loadRelationIds: true,
}; };
if (after) { if (after) {
@ -124,7 +123,7 @@ router.get("/", async (req: Request, res: Response) => {
LessThan((BigInt(around) + BigInt(halfLimit)).toString()) LessThan((BigInt(around) + BigInt(halfLimit)).toString())
]; ];
return res.json([]); return res.json([]); // TODO: fix around
} }
const messages = await Message.find(query); const messages = await Message.find(query);