From 4fa2e217c171ab321e1c0322f48d70d327e8f596 Mon Sep 17 00:00:00 2001 From: zeripath Date: Thu, 16 Jul 2020 22:58:46 +0100 Subject: [PATCH] Set NoAutoTime when updating is_archived (#12266) Fix #12246 Signed-off-by: Andrew Thornton Co-authored-by: Lauris BH --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index a191571b8a3..36662825c5a 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 }