diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-24 07:36:38 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-24 07:36:38 -0400 |
commit | 59bbddb3183c27cbb5fb7918cefd9bb3a763a410 (patch) | |
tree | 89f4faae12e81201268055029863db7a61c4a9ea /models | |
parent | d44c44987f704e2d4343db8c252281c86adb4a71 (diff) | |
download | gitea-59bbddb3183c27cbb5fb7918cefd9bb3a763a410.tar.gz gitea-59bbddb3183c27cbb5fb7918cefd9bb3a763a410.zip |
Mirror fix
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 | ||||
-rw-r--r-- | models/user.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index e27e99b056..f03d7683dd 100644 --- a/models/repo.go +++ b/models/repo.go @@ -387,7 +387,7 @@ func UpdateRepository(repo *Repository) error { repo.Website = repo.Website[:255] } - _, err := orm.Id(repo.Id).UseBool().Cols("description", "website").Update(repo) + _, err := orm.Id(repo.Id).UseBool().Cols("description", "website", "updated").Update(repo) return err } diff --git a/models/user.go b/models/user.go index 7fd7449ce5..d2ed5a907d 100644 --- a/models/user.go +++ b/models/user.go @@ -211,7 +211,7 @@ func UpdateUser(user *User) (err error) { user.Website = user.Website[:255] } - _, err = orm.Id(user.Id).UseBool().Cols("website", "location", "is_active", "is_admin").Update(user) + _, err = orm.Id(user.Id).UseBool().Cols("email", "passwd", "avatar", "avatar_email", "website", "location", "is_active", "is_admin", "updated").Update(user) return err } |