summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-12 18:05:46 -0600
committerRory& <root@rory.gay>2026-02-13 01:14:23 +0100
commit689454024c5dc55e6ef472fb1591de43b4810e36 (patch)
tree734819af3191376e5de55deb3985d5bc467e1e86 /src/api
parenthopefully fix this bug (diff)
downloadserver-ts-689454024c5dc55e6ef472fb1591de43b4810e36.tar.xz
thanks git
Diffstat (limited to 'src/api')
-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 {