diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 22:22:34 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 22:22:34 +1000 |
commit | 6f13b6962d1578a00f54ee3f78f1f6049cd0d3f0 (patch) | |
tree | 859ed98769eacca5b671dd4a66b44c7c25a80f4b | |
parent | Revert "Revert "Remove unnessesary async and close on error in gateway"" (diff) | |
download | server-6f13b6962d1578a00f54ee3f78f1f6049cd0d3f0.tar.xz |
Revert ascending order thing
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index f2dace17..1e9b58ae 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -102,7 +102,7 @@ router.get("/", async (req: Request, res: Response) => { if (!permissions.has("READ_MESSAGE_HISTORY")) return res.json([]); var query: FindManyOptions<Message> & { where: { id?: any; }; } = { - order: { id: "ASC" }, + order: { id: "DESC" }, take: limit, where: { channel_id }, relations: ["author", "webhook", "application", "mentions", "mention_roles", "mention_channels", "sticker_items", "attachments"] |