1
0
Fork 0
forked from forgejo/forgejo

Updated and created were appended with _unix. Fresh databases have only the newly named fields.

This commit is contained in:
Marin Jankovski 2016-03-11 12:43:35 +01:00
parent 5267dce210
commit 1314ba219e
6 changed files with 11 additions and 10 deletions

View file

@ -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 {