feat(analyticsApi): added initDailyAnalyticsAggregates endpoint
Build and Push Docker image / build-and-push (push) Successful in 2m13s
Details
Build and Push Docker image / build-and-push (push) Successful in 2m13s
Details
This commit is contained in:
parent
179c353f95
commit
e32dbbfa0d
|
@ -147,7 +147,7 @@ func initPageViewCount(app *pocketbase.PocketBase, e *core.ServeEvent) {
|
|||
)
|
||||
FROM (
|
||||
SELECT
|
||||
strftime('%Y-%m-%d', created) AS date,
|
||||
strftime('%m/%d/%Y %H:%M:%S %Z', created) AS date,
|
||||
COUNT(id) AS daily_count
|
||||
FROM analyticsPageViews
|
||||
WHERE
|
||||
|
@ -163,7 +163,7 @@ func initPageViewCount(app *pocketbase.PocketBase, e *core.ServeEvent) {
|
|||
LIMIT {:perPage} OFFSET {:offset}
|
||||
`).
|
||||
Bind(dbx.Params{
|
||||
"startDate": startDate.Format("2006-01-02 15:04:05"),
|
||||
"startDate": startDate,
|
||||
"perPage": perPage,
|
||||
"offset": offset,
|
||||
}).
|
||||
|
|
Loading…
Reference in New Issue