mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix collect
This commit is contained in:
parent
61df707765
commit
07d003e858
11 changed files with 41 additions and 27 deletions
|
|
@ -13,7 +13,7 @@ function relationalQuery(websites, start_at) {
|
|||
return prisma.client.event.findMany({
|
||||
where: {
|
||||
website: {
|
||||
id: {
|
||||
websiteUuid: {
|
||||
in: websites,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@ export async function saveEvent(...args) {
|
|||
});
|
||||
}
|
||||
|
||||
async function relationalQuery(websiteId, { sessionId, url, eventName, eventData }) {
|
||||
async function relationalQuery(
|
||||
{ websiteId },
|
||||
{ session: { id: sessionId }, url, eventName, eventData },
|
||||
) {
|
||||
const data = {
|
||||
websiteId,
|
||||
sessionId,
|
||||
|
|
@ -32,7 +35,7 @@ async function relationalQuery(websiteId, { sessionId, url, eventName, eventData
|
|||
}
|
||||
|
||||
async function clickhouseQuery(
|
||||
websiteId,
|
||||
{ websiteUuid: websiteId },
|
||||
{ session: { country, sessionUuid, ...sessionArgs }, eventUuid, url, eventName, eventData },
|
||||
) {
|
||||
const { getDateFormat, sendMessage } = kafka;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue