1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 10:22:31 +01:00
This commit is contained in:
Madeline 2023-07-28 09:47:31 +10:00
parent 08f17f88e7
commit 4235dec54d
No known key found for this signature in database
GPG Key ID: 80D25DA3BCB24281

View File

@ -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()))