mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
fix some components in realtime data
This commit is contained in:
parent
6dd90ce9ca
commit
05ece6a4d0
6 changed files with 21 additions and 67 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import { md5 } from 'lib/crypto';
|
||||
import { getPageviews } from '../pageview/getPageviews';
|
||||
import { getSessions } from '../session/getSessions';
|
||||
import { getEvents } from '../event/getEvents';
|
||||
import { EVENT_TYPE } from 'lib/constants';
|
||||
|
||||
export async function getRealtimeData(websiteId, time) {
|
||||
const [pageviews, sessions, events] = await Promise.all([
|
||||
getPageviews(websiteId, time),
|
||||
getEvents(websiteId, time, EVENT_TYPE.pageView),
|
||||
getSessions(websiteId, time),
|
||||
getEvents(websiteId, time),
|
||||
getEvents(websiteId, time, EVENT_TYPE.customEvent),
|
||||
]);
|
||||
|
||||
const decorate = (id, data) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue