summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 1c4f09c4d7..8ae3cfe6f2 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -929,7 +929,7 @@ func DeleteRepository(uid, repoID int64, userName string) error {
return err
}
for i := range issues {
- if _, err = sess.Delete(&Comment{IssueId: issues[i].ID}); err != nil {
+ if _, err = sess.Delete(&Comment{IssueID: issues[i].ID}); err != nil {
return err
}
}