Stats: Correct the number of arguments for SQL call (#27182)

* Stats: Correct the number of arguments for SQL call

* Stats: Run admin stats call as integration test
This commit is contained in:
Emil Tullstedt
2020-08-25 08:59:44 +02:00
committed by GitHub
parent 84eb03e7e5
commit d5687cce11
2 changed files with 9 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ func GetAdminStats(query *models.GetAdminStatsQuery) error {
) AS active_sessions`
var stats models.AdminStats
_, err := x.SQL(rawSql, activeEndDate, activeEndDate, activeEndDate, activeEndDate, activeEndDate.Unix()).Get(&stats)
_, err := x.SQL(rawSql, activeEndDate, activeEndDate.Unix()).Get(&stats)
if err != nil {
return err
}