diff --git "a/api/src/routes/channels/\043channel_id/messages/index.ts" "b/api/src/routes/channels/\043channel_id/messages/index.ts" index 1faf9a3..3c014f5 100644 --- "a/api/src/routes/channels/\043channel_id/messages/index.ts" +++ "b/api/src/routes/channels/\043channel_id/messages/index.ts" @@ -106,8 +106,7 @@ 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 @@ LessThan((BigInt(around) + BigInt(halfLimit)).toString()) ]; - return res.json([]); + return res.json([]); // TODO: fix around } const messages = await Message.find(query);