aboutsummaryrefslogtreecommitdiffstats
path: root/services/comments/comments.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/comments/comments.go')
-rw-r--r--services/comments/comments.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/comments/comments.go b/services/comments/comments.go
index c1b3ab73c9..b80fddf93f 100644
--- a/services/comments/comments.go
+++ b/services/comments/comments.go
@@ -48,7 +48,7 @@ func UpdateComment(c *models.Comment, doer *user_model.User, oldContent string)
return err
}
if !hasContentHistory {
- if err = issues.SaveIssueContentHistory(db.GetEngine(db.DefaultContext), c.PosterID, c.IssueID, c.ID,
+ if err = issues.SaveIssueContentHistory(db.DefaultContext, c.PosterID, c.IssueID, c.ID,
c.CreatedUnix, oldContent, true); err != nil {
return err
}
@@ -60,7 +60,7 @@ func UpdateComment(c *models.Comment, doer *user_model.User, oldContent string)
}
if needsContentHistory {
- err := issues.SaveIssueContentHistory(db.GetEngine(db.DefaultContext), doer.ID, c.IssueID, c.ID, timeutil.TimeStampNow(), c.Content, false)
+ err := issues.SaveIssueContentHistory(db.DefaultContext, doer.ID, c.IssueID, c.ID, timeutil.TimeStampNow(), c.Content, false)
if err != nil {
return err
}