diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-07-28 09:47:31 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-07-28 09:48:03 +1000 |
commit | 4235dec54d005076c669c76d1362a87df305922a (patch) | |
tree | 23f0aefa39120f9656ccf18f78219824b0647694 /src | |
parent | Fix regression of 5f22faa57b7104ba29a01889a1bafc35b3be4f02 (diff) | |
download | server-4235dec54d005076c669c76d1362a87df305922a.tar.xz |
goof
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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())) |