fix(analyticsApi): fixed last_30_days_data
Build and Push Docker image / build-and-push (push) Successful in 2m16s Details

This commit is contained in:
Valentin Kolb 2024-11-13 01:30:20 +01:00
parent 72cfd2ba59
commit f8e15cdd47
1 changed files with 2 additions and 2 deletions

View File

@ -135,10 +135,10 @@ func initPageViewCount(app *pocketbase.PocketBase, e *core.ServeEvent) {
FROM analyticsPageViews
WHERE path = view.path AND created >= {:startDate}
) AS count,
(
(
SELECT json_group_array(
json_object(
'date', strftime('%Y-%m-%dT%H:%M:%SZ', created),
'date', date,
'count', daily_count
)
)