mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
clickhouse inserts
This commit is contained in:
parent
6ea2282f82
commit
65910c7348
13 changed files with 146 additions and 40 deletions
|
|
@ -37,6 +37,8 @@ export async function getSession(req) {
|
|||
|
||||
let session = await getSessionByUuid(session_uuid);
|
||||
|
||||
session = Array.isArray(session) && session[0] ? session[0] : null;
|
||||
|
||||
if (!session) {
|
||||
try {
|
||||
session = await createSession(website_id, {
|
||||
|
|
@ -50,6 +52,8 @@ export async function getSession(req) {
|
|||
device,
|
||||
});
|
||||
|
||||
console.log(session);
|
||||
|
||||
if (!session) {
|
||||
return null;
|
||||
}
|
||||
|
|
@ -65,5 +69,6 @@ export async function getSession(req) {
|
|||
return {
|
||||
website_id,
|
||||
session_id,
|
||||
session_uuid,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue