forked from forgejo/forgejo
Updated and created were appended with _unix. Fresh databases have only the newly named fields.
This commit is contained in:
parent
5267dce210
commit
1314ba219e
6 changed files with 11 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue