Skip to content

Commit

Permalink
fix bug go-gitea#564
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 3, 2017
1 parent 70900bd commit 0ed2d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -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").
Expand Down

0 comments on commit 0ed2d7a

Please sign in to comment.