mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
update kafka saves
This commit is contained in:
parent
192dd218cb
commit
e12d25677d
3 changed files with 3 additions and 6 deletions
|
|
@ -1,13 +1,12 @@
|
||||||
import { CLICKHOUSE, RELATIONAL, KAFKA, URL_LENGTH } from 'lib/constants';
|
import { CLICKHOUSE, RELATIONAL, KAFKA, URL_LENGTH } from 'lib/constants';
|
||||||
import {
|
import {
|
||||||
getDateFormatClickhouse,
|
getDateFormatClickhouse,
|
||||||
getDateFormatKafka,
|
|
||||||
prisma,
|
prisma,
|
||||||
rawQueryClickhouse,
|
rawQueryClickhouse,
|
||||||
runAnalyticsQuery,
|
runAnalyticsQuery,
|
||||||
runQuery,
|
runQuery,
|
||||||
kafkaProducer,
|
|
||||||
} from 'lib/db';
|
} from 'lib/db';
|
||||||
|
import { kafkaProducer, getDateFormatKafka } from 'lib/kafka';
|
||||||
|
|
||||||
export async function saveEvent(...args) {
|
export async function saveEvent(...args) {
|
||||||
return runAnalyticsQuery({
|
return runAnalyticsQuery({
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
import { CLICKHOUSE, RELATIONAL, KAFKA, URL_LENGTH } from 'lib/constants';
|
import { CLICKHOUSE, RELATIONAL, KAFKA, URL_LENGTH } from 'lib/constants';
|
||||||
import {
|
import {
|
||||||
getDateFormatClickhouse,
|
getDateFormatClickhouse,
|
||||||
getDateFormatKafka,
|
|
||||||
prisma,
|
prisma,
|
||||||
rawQueryClickhouse,
|
rawQueryClickhouse,
|
||||||
runAnalyticsQuery,
|
runAnalyticsQuery,
|
||||||
runQuery,
|
runQuery,
|
||||||
kafkaProducer,
|
|
||||||
} from 'lib/db';
|
} from 'lib/db';
|
||||||
|
import { kafkaProducer, getDateFormatKafka } from 'lib/kafka';
|
||||||
|
|
||||||
export async function savePageView(...args) {
|
export async function savePageView(...args) {
|
||||||
return runAnalyticsQuery({
|
return runAnalyticsQuery({
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
import { CLICKHOUSE, RELATIONAL, KAFKA } from 'lib/constants';
|
import { CLICKHOUSE, RELATIONAL, KAFKA } from 'lib/constants';
|
||||||
import {
|
import {
|
||||||
getDateFormatClickhouse,
|
getDateFormatClickhouse,
|
||||||
getDateFormatKafka,
|
|
||||||
prisma,
|
prisma,
|
||||||
rawQueryClickhouse,
|
rawQueryClickhouse,
|
||||||
runAnalyticsQuery,
|
runAnalyticsQuery,
|
||||||
runQuery,
|
runQuery,
|
||||||
kafkaProducer,
|
|
||||||
} from 'lib/db';
|
} from 'lib/db';
|
||||||
|
import { kafkaProducer, getDateFormatKafka } from 'lib/kafka';
|
||||||
import { getSessionByUuid } from 'queries';
|
import { getSessionByUuid } from 'queries';
|
||||||
|
|
||||||
export async function createSession(...args) {
|
export async function createSession(...args) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue