aboutsummaryrefslogtreecommitdiffstats
path: root/models/access.go
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2016-03-11 12:43:35 +0100
committerMarin Jankovski <maxlazio@gmail.com>2016-03-11 12:43:35 +0100
commit1314ba219ef8a655872df743434bffe959d3028f (patch)
tree9ee81ef7fb5901aefb5c28d8ae09e55bbf9121b5 /models/access.go
parent5267dce21023802818b0c0c16ba2ca47c146e1b5 (diff)
downloadgitea-1314ba219ef8a655872df743434bffe959d3028f.tar.gz
gitea-1314ba219ef8a655872df743434bffe959d3028f.zip
Updated and created were appended with _unix. Fresh databases have only the newly named fields.
Diffstat (limited to 'models/access.go')
-rw-r--r--models/access.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/access.go b/models/access.go
index fe2350606a..447777ad5a 100644
--- a/models/access.go
+++ b/models/access.go
@@ -110,7 +110,7 @@ func (u *User) GetAccessibleRepositories() ([]*Repository, error) {
repoIDs = append(repoIDs, access.RepoID)
}
repos := make([]*Repository, 0, len(repoIDs))
- return repos, x.Where("owner_id != ?", u.Id).In("id", repoIDs).Desc("updated").Find(&repos)
+ return repos, x.Where("owner_id != ?", u.Id).In("id", repoIDs).Desc("updated_unix").Find(&repos)
}
func maxAccessMode(modes ...AccessMode) AccessMode {