summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-07 20:31:36 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-07 20:31:36 +1000
commit6dc9dd53037234940372879db9f74695c2f1e41d (patch)
treef750254ef3c81c44e46e4a769db188c124a17cb5 /src
parentset default role flags to 0 (diff)
downloadserver-6dc9dd53037234940372879db9f74695c2f1e41d.tar.xz
fix reversed check in GET messages
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts2
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);
 			}