summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-12 19:56:54 -0600
committerRory& <root@rory.gay>2026-02-13 02:58:03 +0100
commitee6b7b6ccf2d2e6c4d67f1ecbb2717d4afc5c32e (patch)
tree700139a0de35adbaf2d80ef8c60851e938ace2c8
parentupdate other pins (diff)
downloadserver-ts-ee6b7b6ccf2d2e6c4d67f1ecbb2717d4afc5c32e.tar.xz
die
-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 {