From 74731c3a5aea71c81e4ca75bde96154f3adf3cfa Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 29 Mar 2022 22:57:33 +0800 Subject: Move some issue methods as functions (#19255) * Move some issue methods as functions * Fix bug --- models/issue_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/issue_comment.go') diff --git a/models/issue_comment.go b/models/issue_comment.go index 500ed6d038..7fb013ae92 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -858,7 +858,7 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment } } case CommentTypeReopen, CommentTypeClose: - if err = opts.Issue.updateClosedNum(ctx); err != nil { + if err = updateIssueClosedNum(ctx, opts.Issue); err != nil { return err } } -- cgit v1.2.3