diff --git a/analyticsApi/main.go b/analyticsApi/main.go index 8b077fc..0d32977 100644 --- a/analyticsApi/main.go +++ b/analyticsApi/main.go @@ -52,7 +52,7 @@ func initSessionCount(app *pocketbase.PocketBase, e *core.ServeEvent) { err := app.Dao().DB(). NewQuery(` SELECT ` + field + ` as value, COUNT(id) AS count - FROM analyticsPageViews + FROM analyticsSessions WHERE created >= {:startDate} GROUP BY ` + field). Bind(dbx.Params{