From cd3332454529adcb8cfb75c1d5f839684dd95c74 Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Wed, 13 Nov 2024 00:13:58 +0100 Subject: [PATCH] fix(analyticsApi): we are using the correct collection now - yay --- analyticsApi/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{