fix: don't set order for counting queries

This commit is contained in:
CyberL1 2025-09-29 10:20:15 +02:00 committed by Rory&
parent 6bf4109465
commit 3e93ad8a87
2 changed files with 0 additions and 2 deletions

View File

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

View File

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