mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
fix: don't set order for counting queries
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user