diff --git a/models/org.go b/models/org.go index 881b8bfc7ece..7fbd790f5b37 100644 --- a/models/org.go +++ b/models/org.go @@ -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").