mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-25 17:51:11 +01:00
fix session get
This commit is contained in:
parent
648a5341e5
commit
224e9b3718
@ -15,7 +15,7 @@ async function relationalQuery(where) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function clickhouseQuery(sessionId) {
|
async function clickhouseQuery({ id: sessionId }) {
|
||||||
const { rawQuery, findFirst } = clickhouse;
|
const { rawQuery, findFirst } = clickhouse;
|
||||||
const params = [sessionId];
|
const params = [sessionId];
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ async function clickhouseQuery(sessionId) {
|
|||||||
language,
|
language,
|
||||||
country
|
country
|
||||||
from event
|
from event
|
||||||
where session_id = $1
|
where session_id = $1
|
||||||
limit 1`,
|
limit 1`,
|
||||||
params,
|
params,
|
||||||
).then(result => findFirst(result));
|
).then(result => findFirst(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user