0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 10:54:08 +01:00
This commit is contained in:
Lunny Xiao 2017-01-03 16:27:11 +08:00 committed by GitHub
parent 980dd0bf51
commit 09dabe2ff2

View file

@ -559,7 +559,7 @@ func (org *User) GetUserRepositories(userID int64, page, pageSize int) ([]*Repos
}
repos := make([]*Repository, 0, pageSize)
if err := x.
if err := x.Select("`repository`.*").
Join("INNER", "team_repo", "`team_repo`.repo_id=`repository`.id").
Where(cond).
GroupBy("`repository`.id").