mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +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';
|
||||
import { getSessionByUuid } from 'queries';
|
||||
|
||||
export async function createSession(...args) {
|
||||
|
|
@ -73,7 +73,7 @@ async function kafkaQuery(
|
|||
country: country ? country : null,
|
||||
};
|
||||
|
||||
await kafkaProducer(params, 'session');
|
||||
await sendKafkaMessage(params, 'session');
|
||||
|
||||
return getSessionByUuid(session_uuid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue