mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
Changed sql query for grafana_admin_count
This commit is contained in:
parent
2190392e05
commit
442db7fee1
@ -83,8 +83,9 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
|
||||
FROM ` + dialect.Quote("star") + `
|
||||
) AS starred_db_count,
|
||||
(
|
||||
SELECT SUM ( ` + dialect.Quote("is_admin") + ` )
|
||||
SELECT COUNT(*)
|
||||
FROM ` + dialect.Quote("user") + `
|
||||
WHERE ` + dialect.Quote("is_admin") + ` = 1
|
||||
) AS grafana_admin_count
|
||||
`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user