diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-12-13 23:55:43 +0800 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-12-13 10:55:43 -0500 |
commit | b3b7598ec6846d53d7deb2c84781b06e22c93044 (patch) | |
tree | 53c85943b23867b20e2b31742fbe06fcda088ccd /models/issue_tracked_time.go | |
parent | 49ea6e0deb7ecef327b0c2f41920f75c6aaf80d3 (diff) | |
download | gitea-b3b7598ec6846d53d7deb2c84781b06e22c93044.tar.gz gitea-b3b7598ec6846d53d7deb2c84781b06e22c93044.zip |
Improve performance of dashboard (#4977)
Diffstat (limited to 'models/issue_tracked_time.go')
-rw-r--r-- | models/issue_tracked_time.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/issue_tracked_time.go b/models/issue_tracked_time.go index 6592f06d73..bb3e767127 100644 --- a/models/issue_tracked_time.go +++ b/models/issue_tracked_time.go @@ -90,6 +90,9 @@ func AddTime(user *User, issue *Issue, time int64) (*TrackedTime, error) { if _, err := x.Insert(tt); err != nil { return nil, err } + if err := issue.loadRepo(x); err != nil { + return nil, err + } if _, err := CreateComment(&CreateCommentOptions{ Issue: issue, Repo: issue.Repo, |