From cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Fri, 29 Sep 2023 14:12:54 +0200 Subject: 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. --- models/issues/comment_code.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/issues/comment_code.go') diff --git a/models/issues/comment_code.go b/models/issues/comment_code.go index d447d7542c..49927fbbe2 100644 --- a/models/issues/comment_code.go +++ b/models/issues/comment_code.go @@ -99,11 +99,11 @@ func findCodeComments(ctx context.Context, opts FindCommentsOptions, issue *Issu comments[n] = comment n++ - if err := comment.LoadResolveDoer(); err != nil { + if err := comment.LoadResolveDoer(ctx); err != nil { return nil, err } - if err := comment.LoadReactions(issue.Repo); err != nil { + if err := comment.LoadReactions(ctx, issue.Repo); err != nil { return nil, err } -- cgit v1.2.3