fix(analyticsApi): we are using the correct collection now - yay
Build and Push Docker image / build-and-push (push) Has been cancelled
Details
Build and Push Docker image / build-and-push (push) Has been cancelled
Details
This commit is contained in:
parent
13d20a99e9
commit
cd33324545
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue