diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2016-03-11 12:43:35 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2016-03-11 12:43:35 +0100 |
commit | 1314ba219ef8a655872df743434bffe959d3028f (patch) | |
tree | 9ee81ef7fb5901aefb5c28d8ae09e55bbf9121b5 /models/access.go | |
parent | 5267dce21023802818b0c0c16ba2ca47c146e1b5 (diff) | |
download | gitea-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.go | 2 |
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 { |