1
0
Fork 0
forked from forgejo/forgejo

Move change issue title from models to issue service package (#8456)

* move change issue title from models to issue service package

* make the change less

* fix typo
This commit is contained in:
Lunny Xiao 2019-10-11 14:44:43 +08:00 committed by GitHub
parent 9ff9f5ad1d
commit 46a12f196b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 61 deletions

View file

@ -160,7 +160,7 @@ func TestUpdateIssueCols(t *testing.T) {
issue.Content = "This should have no effect"
now := time.Now().Unix()
assert.NoError(t, UpdateIssueCols(issue, "name"))
assert.NoError(t, updateIssueCols(x, issue, "name"))
then := time.Now().Unix()
updatedIssue := AssertExistsAndLoadBean(t, &Issue{ID: issue.ID}).(*Issue)