mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-22 17:40:02 +02:00
fix bug forget to remove Stopwatch when remove repository (#4933)
fix bug forget to remove Stopwatch when remove repository
This commit is contained in:
parent
c145cb745b
commit
1e51307466
@ -1852,6 +1852,9 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
|
|||||||
if _, err = sess.In("issue_id", issueIDs).Delete(&IssueWatch{}); err != nil {
|
if _, err = sess.In("issue_id", issueIDs).Delete(&IssueWatch{}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if _, err = sess.In("issue_id", issueIDs).Delete(&Stopwatch{}); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
attachments := make([]*Attachment, 0, 5)
|
attachments := make([]*Attachment, 0, 5)
|
||||||
if err = sess.
|
if err = sess.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user