fix(views): count task buckets

This commit is contained in:
kolaente 2024-03-18 23:09:31 +01:00
parent 409f9a0cc6
commit b7b3169169
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ func checkBucketLimit(s *xorm.Session, t *Task, bucket *Bucket) (err error) {
if bucket.Limit > 0 {
taskCount, err := s.
Where("bucket_id = ?", bucket.ID).
Count(&Task{})
Count(&TaskBucket{})
if err != nil {
return err
}