fix: don't set order for counting queries
This commit is contained in:
parent
6bf4109465
commit
3e93ad8a87
@ -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