mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-09 19:27:44 +02:00
QFix: add limit to count queries (#7458)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -71,9 +71,11 @@
|
||||
task.class.Task,
|
||||
{ kind: taskType._id },
|
||||
(res) => {
|
||||
tasksCounter = res.length
|
||||
tasksCounter = res.total
|
||||
},
|
||||
{
|
||||
total: true,
|
||||
limit: 1,
|
||||
projection: {
|
||||
_id: 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user