diff options
-rw-r--r-- | models/repo.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index 25f70bf1a1..c334431be7 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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. |