From f694bb45d79dcc093bc6332eabb3af063bc6b088 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 30 Oct 2019 16:36:25 +0800 Subject: Move issue change content from models to service (#8711) * Move issue change content from models to service * fix lint --- routers/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers') diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 12ff0a054c..ac405a1c29 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1066,7 +1066,7 @@ func UpdateIssueContent(ctx *context.Context) { } content := ctx.Query("content") - if err := issue.ChangeContent(ctx.User, content); err != nil { + if err := issue_service.ChangeContent(issue, ctx.User, content); err != nil { ctx.ServerError("ChangeContent", err) return } -- cgit v1.2.3