fix collect
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user