clickhouse inserts

This commit is contained in:
Brian Cao 2022-07-22 14:43:19 -07:00
parent 6ea2282f82
commit 65910c7348
13 changed files with 146 additions and 40 deletions

View file

@ -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,
};
}