mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
remove CH import
This commit is contained in:
parent
f3135ee867
commit
0387cf0da0
1 changed files with 2 additions and 3 deletions
|
|
@ -4,12 +4,11 @@ import { uuid } from 'lib/crypto';
|
|||
import redis, { DELETED } from 'lib/redis';
|
||||
import { getClientInfo, getJsonBody } from 'lib/request';
|
||||
import { createSession, getSessionByUuid, getWebsiteByUuid } from 'queries';
|
||||
import clickhouse from 'lib/clickhouse';
|
||||
|
||||
export async function getSession(req) {
|
||||
const { payload } = getJsonBody(req);
|
||||
const hasRedis = redis.client;
|
||||
const hasClickhouse = clickhouse.client;
|
||||
const hasRedis = process.env.REDIS_URL;
|
||||
const hasClickhouse = process.env.CLICKHOUSE_URL;
|
||||
|
||||
if (!payload) {
|
||||
throw new Error('Invalid request');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue