Explorar el Código

issue: fix timestamp updating (#6210)

Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Kosadchiy hace 3 años
padre
commit
db037495de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      internal/db/issue.go

+ 1 - 0
internal/db/issue.go

@@ -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
 }