Fix unexported field

This commit is contained in:
kolaente 2020-09-04 13:32:08 +02:00
parent 6b24ec5eaa
commit 0f95a667df
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -626,7 +626,7 @@ func createTask(s *xorm.Session, t *Task, a web.Auth, updateAssignees bool) (err
// Check the limit
if bucket.Limit > 0 {
type currentTasks struct {
count int64
Count int64
}
taskCount := &currentTasks{}
_, err = s.
@ -636,7 +636,7 @@ func createTask(s *xorm.Session, t *Task, a web.Auth, updateAssignees bool) (err
if err != nil {
return err
}
if taskCount.count >= bucket.Limit {
if taskCount.Count >= bucket.Limit {
return ErrBucketLimitExceeded{TaskID: t.ID, BucketID: bucket.ID, Limit: bucket.Limit}
}
}