Skip to content

Commit

Permalink
fix bug forget to remove Stopwatch when remove repository (go-gitea#4928
Browse files Browse the repository at this point in the history
)
  • Loading branch information
linweijie2012 authored and lunny committed Sep 13, 2018
1 parent 126ba79 commit f98040a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1856,6 +1856,9 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
if _, err = sess.In("issue_id", issueIDs).Delete(&IssueWatch{}); err != nil {
return err
}
if _, err = sess.In("issue_id", issueIDs).Delete(&Stopwatch{}); err != nil {
return err
}

attachments := make([]*Attachment, 0, 5)
if err = sess.
Expand Down

0 comments on commit f98040a

Please sign in to comment.