fix(buckets): return correct task count for tasks in buckets
This commit is contained in:
parent
d8ca1a2de1
commit
ecbefdb921
@ -297,6 +297,7 @@ func (d *dbTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task, totalCo
|
|||||||
queryCount = queryCount.Join("LEFT", "task_buckets", "task_buckets.task_id = tasks.id")
|
queryCount = queryCount.Join("LEFT", "task_buckets", "task_buckets.task_id = tasks.id")
|
||||||
}
|
}
|
||||||
totalCount, err = queryCount.
|
totalCount, err = queryCount.
|
||||||
|
Select("count(DISTINCT tasks.id)").
|
||||||
Count(&Task{})
|
Count(&Task{})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user