Fix unexported field
This commit is contained in:
parent
6b24ec5eaa
commit
0f95a667df
|
@ -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 := ¤tTasks{}
|
||||
_, 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}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue