Refactor issue indexer (#5363)

This commit is contained in:
Lunny Xiao authored and techknowlogick committed 2019-02-19 09:39:39 -05:00
1 parent 094263db4d
commit 830ae61456
22 files changed
+1046 -117

No files matched your search

+2
View File
@@ -1035,6 +1035,7 @@ func UpdateComment(doer *User, c *Comment, oldContent string) error {
if err := c.LoadIssue(); err != nil {
return err
}
if err := c.Issue.LoadAttributes(); err != nil {
return err
}
@@ -1093,6 +1094,7 @@ func DeleteComment(doer *User, comment *Comment) error {
if err := comment.LoadIssue(); err != nil {
return err
}
if err := comment.Issue.LoadAttributes(); err != nil {
return err
}