From 4235dec54d005076c669c76d1362a87df305922a Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 28 Jul 2023 09:47:31 +1000 Subject: [PATCH] goof --- src/api/routes/channels/#channel_id/messages/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 4cc38497..75fb7b83 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -126,7 +126,8 @@ router.get( Message.find({ ...query, where: { id: LessThan(around) } }), Message.find({ ...query, where: { id: MoreThan(around) } }), ]); - messages = right.concat(left); + right.push(...left); + messages = right; } else { if (after) { if (BigInt(after) > BigInt(Snowflake.generate()))