Set NoAutoTime when updating is_archived (#12266)

Fix #12246

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
This commit is contained in:
zeripath
2020-07-16 17:58:46 -04:00
committed by GitHub
co-authored by Lauris BH
parent 3bcc6e7a9e
commit 4fa2e217c1
+1 -1
View File
@@ -2072,7 +2072,7 @@ func CheckRepoStats(ctx context.Context) error {
// SetArchiveRepoState sets if a repo is archived
func (repo *Repository) SetArchiveRepoState(isArchived bool) (err error) {
repo.IsArchived = isArchived
_, err = x.Where("id = ?", repo.ID).Cols("is_archived").Update(repo)
_, err = x.Where("id = ?", repo.ID).Cols("is_archived").NoAutoTime().Update(repo)
return
}