From f8e15cdd4709b413505ab4e5228f32ffa5e058e6 Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Wed, 13 Nov 2024 01:30:20 +0100 Subject: [PATCH] fix(analyticsApi): fixed last_30_days_data --- analyticsApi/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analyticsApi/main.go b/analyticsApi/main.go index 8bd2787..e578b5b 100644 --- a/analyticsApi/main.go +++ b/analyticsApi/main.go @@ -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 ) )