issue: fix timestamp updating (#6210)

Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
This commit is contained in:
Kosadchiy
2020-08-24 14:06:29 +03:00
committed by ᴜɴᴋɴᴡᴏɴ
parent 39bdd5c2cd
commit db037495de

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
}