update api to new CH columns

This commit is contained in:
Francis Cao 2022-10-08 16:12:33 -07:00
parent 36edbe2f4c
commit 96add409b6
19 changed files with 74 additions and 48 deletions

View file

@ -36,7 +36,7 @@ async function relationalQuery(
}
async function clickhouseQuery(
website_id,
website_uuid,
start_at,
end_at,
timezone = 'UTC',
@ -44,7 +44,7 @@ async function clickhouseQuery(
filters = {},
) {
const { rawQuery, getDateQuery, getBetweenDates, getFilterQuery } = clickhouse;
const params = [website_id];
const params = [website_uuid];
return rawQuery(
`select