feat(analyticsApi): minor sql changes
Build and Push Docker image / build-and-push (push) Successful in 2m12s
Details
Build and Push Docker image / build-and-push (push) Successful in 2m12s
Details
This commit is contained in:
parent
36094a6717
commit
23b0e7cf84
|
@ -227,7 +227,7 @@ func initAggregateCount(app *pocketbase.PocketBase, e *core.ServeEvent) {
|
|||
|
||||
err := app.Dao().DB().
|
||||
NewQuery(`
|
||||
SELECT ` + field + ` as value, COUNT(id) AS count
|
||||
SELECT IFNULL(` + field + `, 'N/A') as value, COUNT(id) AS count
|
||||
FROM analyticsSessions
|
||||
WHERE created >= {:startDate}
|
||||
GROUP BY ` + field).
|
||||
|
|
Loading…
Reference in New Issue