소스 검색

issue: fix timestamp updating (#6210)

Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Kosadchiy 3 년 전
부모
커밋
db037495de
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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
 }