From adc60e99607a1ab8c284e15ed1698417bef49ddd Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Wed, 13 Nov 2024 15:22:23 +0100 Subject: [PATCH] fix(analyticsApi): added error_count to initAggregateCount --- analyticsApi/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyticsApi/main.go b/analyticsApi/main.go index 67aa11f..fb01887 100644 --- a/analyticsApi/main.go +++ b/analyticsApi/main.go @@ -285,7 +285,7 @@ func initAggregateCount(app *pocketbase.PocketBase, e *core.ServeEvent) { IFNULL(` + field + `, 'N/A') as value, COUNT(id) AS count, SUM(CASE WHEN error IS NOT NULL THEN 1 ELSE 0 END) AS error_count - FROM analyticsSessions + FROM analyticsPageViewsWithSessionDetail WHERE created >= {:startDate} GROUP BY ` + field). Bind(dbx.Params{