mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
fix realtime activity ordering
This commit is contained in:
parent
98eb26fd9e
commit
d2a3ed732a
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {
|
|||
where website_event.website_id = {{websiteId::uuid}}
|
||||
${filterQuery}
|
||||
${dateQuery}
|
||||
order by website_event.created_at asc
|
||||
order by website_event.created_at desc
|
||||
limit 100
|
||||
`,
|
||||
params,
|
||||
|
|
@ -59,7 +59,7 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters): Promis
|
|||
where website_id = {websiteId:UUID}
|
||||
${filterQuery}
|
||||
${dateQuery}
|
||||
order by createdAt asc
|
||||
order by createdAt desc
|
||||
limit 100
|
||||
`,
|
||||
params,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ export async function getRealtimeData(
|
|||
countries,
|
||||
urls,
|
||||
referrers,
|
||||
events: events.reverse(),
|
||||
events: events,
|
||||
series: {
|
||||
views: pageviews,
|
||||
visitors: sessions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue