Move issue change content from models to service (#8711)

* Move issue change content from models to service

* fix lint
This commit is contained in:
Lunny Xiao authored and Lauris BH committed 2019-10-30 10:36:25 +02:00
1 parent 56ebc0c003
commit f694bb45d7
4 files changed
+63 -43

No files matched your search

+1 -1
View File
@@ -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
}