diff options
author | zeripath <art27@cantab.net> | 2020-07-16 22:58:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 17:58:46 -0400 |
commit | 4fa2e217c171ab321e1c0322f48d70d327e8f596 (patch) | |
tree | b9b8aa364a2b43fbbf96a6093b01f80be0f5bece /models/repo.go | |
parent | 3bcc6e7a9e8b04fb0f50e34e0d1437749ac6252a (diff) | |
download | gitea-4fa2e217c171ab321e1c0322f48d70d327e8f596.tar.gz gitea-4fa2e217c171ab321e1c0322f48d70d327e8f596.zip |
Set NoAutoTime when updating is_archived (#12266)
Fix #12246
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index a191571b8a..36662825c5 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 } |