fix(analyticsApi): fixed last_30_days_data
Build and Push Docker image / build-and-push (push) Successful in 2m16s
Details
Build and Push Docker image / build-and-push (push) Successful in 2m16s
Details
This commit is contained in:
parent
72cfd2ba59
commit
f8e15cdd47
|
@ -135,10 +135,10 @@ func initPageViewCount(app *pocketbase.PocketBase, e *core.ServeEvent) {
|
||||||
FROM analyticsPageViews
|
FROM analyticsPageViews
|
||||||
WHERE path = view.path AND created >= {:startDate}
|
WHERE path = view.path AND created >= {:startDate}
|
||||||
) AS count,
|
) AS count,
|
||||||
(
|
(
|
||||||
SELECT json_group_array(
|
SELECT json_group_array(
|
||||||
json_object(
|
json_object(
|
||||||
'date', strftime('%Y-%m-%dT%H:%M:%SZ', created),
|
'date', date,
|
||||||
'count', daily_count
|
'count', daily_count
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue