1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 10:22:31 +01:00

fix reversed check in GET messages

This commit is contained in:
Madeline 2023-08-07 20:31:36 +10:00
parent efd2318959
commit 6dc9dd5303
No known key found for this signature in database
GPG Key ID: 80D25DA3BCB24281

View File

@ -134,7 +134,7 @@ router.get(
return res.status(422);
query.where.id = MoreThan(after);
} else if (before) {
if (BigInt(before) < BigInt(Snowflake.generate()))
if (BigInt(before) > BigInt(Snowflake.generate()))
return res.status(422);
query.where.id = LessThan(before);
}