diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-08-07 20:31:36 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-08-07 20:31:36 +1000 |
commit | 6dc9dd53037234940372879db9f74695c2f1e41d (patch) | |
tree | f750254ef3c81c44e46e4a769db188c124a17cb5 /src | |
parent | set default role flags to 0 (diff) | |
download | server-6dc9dd53037234940372879db9f74695c2f1e41d.tar.xz |
fix reversed check in GET messages
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 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 edc0321c..c384a05b 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -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); } |