remove CH import

This commit is contained in:
Brian Cao 2022-10-06 12:49:49 -07:00
parent f3135ee867
commit 0387cf0da0

View File

@ -4,12 +4,11 @@ import { uuid } from 'lib/crypto';
import redis, { DELETED } from 'lib/redis'; import redis, { DELETED } from 'lib/redis';
import { getClientInfo, getJsonBody } from 'lib/request'; import { getClientInfo, getJsonBody } from 'lib/request';
import { createSession, getSessionByUuid, getWebsiteByUuid } from 'queries'; import { createSession, getSessionByUuid, getWebsiteByUuid } from 'queries';
import clickhouse from 'lib/clickhouse';
export async function getSession(req) { export async function getSession(req) {
const { payload } = getJsonBody(req); const { payload } = getJsonBody(req);
const hasRedis = redis.client; const hasRedis = process.env.REDIS_URL;
const hasClickhouse = clickhouse.client; const hasClickhouse = process.env.CLICKHOUSE_URL;
if (!payload) { if (!payload) {
throw new Error('Invalid request'); throw new Error('Invalid request');