fix: don't set order for counting queries

This commit is contained in:
CyberL1 authored and Rory& committed 2025-09-29 18:32:21 +02:00
1 parent 6bf4109465
commit 3e93ad8a87
2 files changed
-2

No files matched your search

@@ -58,7 +58,6 @@ router.put(
const pinned_count = await Message.count({
where: { channel: { id: channel_id }, pinned_at: Not(IsNull()) },
order: { pinned_at: "DESC" },
});
const { maxPins } = Config.get().limits.channel;
@@ -59,7 +59,6 @@ router.put(
const pinned_count = await Message.count({
where: { channel: { id: channel_id }, pinned_at: Not(IsNull()) },
order: { pinned_at: "DESC" },
});
const { maxPins } = Config.get().limits.channel;