From b135313c478a241ce994d19e685f2a39d066fb92 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 13 May 2022 19:27:58 +0200 Subject: [Refactor] convert team(s) to apiTeam(s) (#13745) * Refactor: teams to api convert * make org load optional * more info in tests --- modules/convert/issue_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/convert/issue_comment.go') diff --git a/modules/convert/issue_comment.go b/modules/convert/issue_comment.go index caba2b506e..6d72849bca 100644 --- a/modules/convert/issue_comment.go +++ b/modules/convert/issue_comment.go @@ -152,7 +152,7 @@ func ToTimelineComment(c *models.Comment, doer *user_model.User) *api.TimelineCo comment.Assignee = ToUser(c.Assignee, nil) } if c.AssigneeTeam != nil { - comment.AssigneeTeam = ToTeam(c.AssigneeTeam) + comment.AssigneeTeam, _ = ToTeam(c.AssigneeTeam) } if c.ResolveDoer != nil { -- cgit v1.2.3