fix(analyticsApi): we are using the correct collection now - yay
Build and Push Docker image / build-and-push (push) Has been cancelled Details

This commit is contained in:
Valentin Kolb 2024-11-13 00:13:58 +01:00
parent 13d20a99e9
commit cd33324545
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func initSessionCount(app *pocketbase.PocketBase, e *core.ServeEvent) {
err := app.Dao().DB(). err := app.Dao().DB().
NewQuery(` NewQuery(`
SELECT ` + field + ` as value, COUNT(id) AS count SELECT ` + field + ` as value, COUNT(id) AS count
FROM analyticsPageViews FROM analyticsSessions
WHERE created >= {:startDate} WHERE created >= {:startDate}
GROUP BY ` + field). GROUP BY ` + field).
Bind(dbx.Params{ Bind(dbx.Params{