mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
Fixed realtime log issues.
This commit is contained in:
parent
56ab099499
commit
3afafd50f3
|
@ -52,7 +52,7 @@ export function RealtimeLog({ data, websiteDomain }) {
|
|||
|
||||
const getTime = ({ createdAt }) => dateFormat(new Date(createdAt), 'pp', locale);
|
||||
|
||||
const getColor = ({ sessionId }) => stringToColor(sessionId);
|
||||
const getColor = ({ id, sessionId }) => stringToColor(sessionId || id);
|
||||
|
||||
const getIcon = ({ __type }) => icons[__type];
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ export async function getRealtimeData(websiteId, time) {
|
|||
};
|
||||
|
||||
return {
|
||||
pageviews: decorate('pageviews', pageviews),
|
||||
pageviews: decorate('pageview', pageviews),
|
||||
sessions: decorate('session', sessions),
|
||||
events: decorate('event', events),
|
||||
timestamp: Date.now(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user