issue: fix timestamp updating (#6210)

Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
pull/6283/head
Kosadchiy 2020-08-24 14:06:29 +03:00 committed by GitHub
parent afb445bb57
commit a02b3e1258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -408,6 +408,7 @@ func (issue *Issue) ReadBy(uid int64) error {
}
func updateIssueCols(e Engine, issue *Issue, cols ...string) error {
cols = append(cols, "updated_unix")
_, err := e.ID(issue.ID).Cols(cols...).Update(issue)
return err
}