Merge pull request #3884 from raintank/issue3883

fix sql query in GetAdminStats.
This commit is contained in:
Daniel Lee 2016-01-29 02:47:55 +01:00
commit 605f0fa24a

View File

@ -83,7 +83,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
FROM ` + dialect.Quote("playlist") + `
) AS playlist_count,
(
SELECT COUNT (DISTINCT ` + dialect.Quote("dashboard_id") + ` )
SELECT COUNT(DISTINCT ` + dialect.Quote("dashboard_id") + ` )
FROM ` + dialect.Quote("star") + `
) AS starred_db_count,
(