This commit is contained in:
MathMan05
2026-02-12 19:21:20 -06:00
committed by Rory&
parent f02d1a7a76
commit a8ebd0a040

View File

@@ -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 {