mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 23:33:15 -05:00
Fix incorrect repository count on organization tab of dashboard (#17256)
Fixes #17249
This commit is contained in:
parent
cd0928f0e8
commit
b6147152f8
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ func GetUserOrgsList(user *User) ([]*MinimalOrg, error) {
|
||||||
groupByStr := groupByCols.String()
|
groupByStr := groupByCols.String()
|
||||||
groupByStr = groupByStr[0 : len(groupByStr)-1]
|
groupByStr = groupByStr[0 : len(groupByStr)-1]
|
||||||
|
|
||||||
sess.Select(groupByStr+", count(repo_id) as org_count").
|
sess.Select(groupByStr+", count(distinct repo_id) as org_count").
|
||||||
Table("user").
|
Table("user").
|
||||||
Join("INNER", "team", "`team`.org_id = `user`.id").
|
Join("INNER", "team", "`team`.org_id = `user`.id").
|
||||||
Join("INNER", "team_user", "`team`.id = `team_user`.team_id").
|
Join("INNER", "team_user", "`team`.id = `team_user`.team_id").
|
||||||
|
|
Loading…
Reference in a new issue