From fcb7fa2264663f8111129bb361043a11b7ad8a00 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Tue, 17 Sep 2024 19:59:58 -0700 Subject: [PATCH] fix reset website bug --- src/lib/clickhouse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/clickhouse.ts b/src/lib/clickhouse.ts index 5502b5babf..b588ec84e5 100644 --- a/src/lib/clickhouse.ts +++ b/src/lib/clickhouse.ts @@ -2,9 +2,9 @@ import { ClickHouseClient, createClient } from '@clickhouse/client'; import { formatInTimeZone } from 'date-fns-tz'; import debug from 'debug'; import { CLICKHOUSE } from 'lib/db'; +import { getWebsite } from 'queries/index'; import { DEFAULT_PAGE_SIZE, OPERATORS } from './constants'; import { maxDate } from './date'; -import { fetchWebsite } from './load'; import { filtersToArray } from './params'; import { PageParams, QueryFilters, QueryOptions } from './types'; @@ -132,7 +132,7 @@ function getFilterParams(filters: QueryFilters = {}) { } async function parseFilters(websiteId: string, filters: QueryFilters = {}, options?: QueryOptions) { - const website = await fetchWebsite(websiteId); + const website = await getWebsite(websiteId); return { filterQuery: getFilterQuery(filters, options),