summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-12 19:21:20 -0600
committerRory& <root@rory.gay>2026-02-13 02:24:35 +0100
commita8ebd0a040498a0aac856dcf51d9ef838d0efbbf (patch)
tree410ae921596a05174b9fe21786bebeb21782f0de
parentfix it the other way arround (diff)
downloadserver-ts-a8ebd0a040498a0aac856dcf51d9ef838d0efbbf.tar.xz
WHY???
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts

index 2446da63..42bb8273 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts
@@ -147,7 +147,6 @@ router.get( if (around) { query.take = Math.floor(limit / 2); if (query.take != 0) { - console.time("Query"); const [right, left] = await Promise.all([ Message.find({ ...query, @@ -159,7 +158,6 @@ router.get( order: { timestamp: "ASC" }, }), ]); - console.timeEnd("Query"); left.push(...right); messages = left.sort((a, b) => a.timestamp.getTime() - b.timestamp.getTime()); } else {