fix(analyticsApi): added error_count to initAggregateCount
Build and Push Docker image / build-and-push (push) Successful in 2m17s Details

This commit is contained in:
Valentin Kolb 2024-11-13 15:22:23 +01:00
parent 099026cd9f
commit adc60e9960
1 changed files with 1 additions and 1 deletions

View File

@ -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{