fix(): admin stats and postgres

This commit is contained in:
Torkel Ödegaard
2016-04-11 18:16:35 -04:00
parent 5a81cf6c17
commit 9c14b9672f
4 changed files with 12 additions and 22 deletions
+1 -6
View File
@@ -85,12 +85,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
(
SELECT COUNT(DISTINCT ` + dialect.Quote("dashboard_id") + ` )
FROM ` + dialect.Quote("star") + `
) AS starred_db_count,
(
SELECT COUNT(*)
FROM ` + dialect.Quote("user") + `
WHERE ` + dialect.Quote("is_admin") + ` = 1
) AS grafana_admin_count
) AS starred_db_count
`
var stats m.AdminStats