Commit 442db7fe by utkarshcmu

Changed sql query for grafana_admin_count

parent 2190392e
......@@ -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
`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment