Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly set the organization num repos #11339

Merged
merged 9 commits into from
May 11, 2020
Prev Previous commit
Next Next commit
attempt to fix mssql
Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed May 8, 2020
commit 1a0f66d5643cd081285ec72048da53761691c088
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func (u *User) GetOrganizations(opts *SearchOrganizationsOptions) error {
Join("INNER", "repository", "`repository`.owner_id = `org_user`.org_id").
zeripath marked this conversation as resolved.
Show resolved Hide resolved
Where(accessibleRepositoryCondition(u)).
And("`org_user`.uid=?", u.ID).
GroupBy("`repository`.owner_id")
GroupBy("`user`.id")
if opts.PageSize != 0 {
sess = opts.setSessionPagination(sess)
}
Expand Down