mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
Feat/um 62 prisma property names (#1562)
* checkpoint * fix pg schema * fix mysql schema * change property names
This commit is contained in:
parent
36edbe2f4c
commit
78338205a3
65 changed files with 431 additions and 433 deletions
|
|
@ -10,19 +10,19 @@ export async function getRealtimeData(websites, time) {
|
|||
]);
|
||||
|
||||
return {
|
||||
pageviews: pageviews.map(({ view_id, ...props }) => ({
|
||||
__id: `p${view_id}`,
|
||||
view_id,
|
||||
pageviews: pageviews.map(({ pageviewId, ...props }) => ({
|
||||
__id: `p${pageviewId}`,
|
||||
pageviewId,
|
||||
...props,
|
||||
})),
|
||||
sessions: sessions.map(({ session_id, ...props }) => ({
|
||||
__id: `s${session_id}`,
|
||||
session_id,
|
||||
sessions: sessions.map(({ sessionId, ...props }) => ({
|
||||
__id: `s${sessionId}`,
|
||||
sessionId,
|
||||
...props,
|
||||
})),
|
||||
events: events.map(({ event_id, ...props }) => ({
|
||||
__id: `e${event_id}`,
|
||||
event_id,
|
||||
events: events.map(({ eventId, ...props }) => ({
|
||||
__id: `e${eventId}`,
|
||||
eventId,
|
||||
...props,
|
||||
})),
|
||||
timestamp: Date.now(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue