mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-29 09:49:13 +00:00
Fix messages?after=snowflake calling new Snowflake, which is not allwoed
This commit is contained in:
@@ -109,7 +109,7 @@ router.get("/", async (req: Request, res: Response) => {
|
||||
};
|
||||
|
||||
if (after) {
|
||||
if (after > new Snowflake()) return res.status(422);
|
||||
if (after > Snowflake.generate()) return res.status(422);
|
||||
query.where.id = MoreThan(after);
|
||||
}
|
||||
else if (before) {
|
||||
|
||||
Reference in New Issue
Block a user