summaryrefslogtreecommitdiffstats
path: root/services/issue/comments.go
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-09-29 14:12:54 +0200
committerGitHub <noreply@github.com>2023-09-29 12:12:54 +0000
commitcf0df023be06c8acec4fc8fb05eab1d1c2e52fd1 (patch)
tree4fd233354202942b597f3591a22e5ea14fe7d0eb /services/issue/comments.go
parent3945c26722dececf2433107c47821238dae7e3c2 (diff)
downloadgitea-cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1.tar.gz
gitea-cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1.zip
More `db.DefaultContext` refactor (#27265)
Part of #27065 This PR touches functions used in templates. As templates are not static typed, errors are harder to find, but I hope I catch it all. I think some tests from other persons do not hurt.
Diffstat (limited to 'services/issue/comments.go')
-rw-r--r--services/issue/comments.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/issue/comments.go b/services/issue/comments.go
index 4a8574edd5..8d8c575c14 100644
--- a/services/issue/comments.go
+++ b/services/issue/comments.go
@@ -84,7 +84,7 @@ func UpdateComment(ctx context.Context, c *issues_model.Comment, doer *user_mode
}
}
- if err := issues_model.UpdateComment(c, doer); err != nil {
+ if err := issues_model.UpdateComment(ctx, c, doer); err != nil {
return err
}