mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
update kafka messaging
This commit is contained in:
parent
9fea2fc77c
commit
46b4b98d40
6 changed files with 31 additions and 15 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
runAnalyticsQuery,
|
||||
runQuery,
|
||||
} from 'lib/db';
|
||||
import { kafkaProducer, getDateFormatKafka } from 'lib/kafka';
|
||||
import { sendKafkaMessage, getDateFormatKafka } from 'lib/db/kafka';
|
||||
|
||||
export async function saveEvent(...args) {
|
||||
return runAnalyticsQuery({
|
||||
|
|
@ -66,5 +66,5 @@ async function kafkaQuery(website_id, { event_uuid, session_uuid, url, event_nam
|
|||
event_name: event_name?.substr(0, 50),
|
||||
};
|
||||
|
||||
await kafkaProducer(params, 'event');
|
||||
await sendKafkaMessage(params, 'event');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue