mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
fix reversed check in GET messages
This commit is contained in:
parent
efd2318959
commit
6dc9dd5303
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user