We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e57eb commit 1c3ae6dCopy full SHA for 1c3ae6d
models/org.go
@@ -455,7 +455,7 @@ func GetUserOrgsList(user *User) ([]*MinimalOrg, error) {
455
groupByStr := groupByCols.String()
456
groupByStr = groupByStr[0 : len(groupByStr)-1]
457
458
- sess.Select(groupByStr+", count(repo_id) as org_count").
+ sess.Select(groupByStr+", count(distinct repo_id) as org_count").
459
Table("user").
460
Join("INNER", "team", "`team`.org_id = `user`.id").
461
Join("INNER", "team_user", "`team`.id = `team_user`.team_id").
0 commit comments