summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts3
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()))