fix collect

This commit is contained in:
Brian Cao 2022-10-11 23:09:06 -07:00
parent 61df707765
commit 07d003e858
11 changed files with 41 additions and 27 deletions

View file

@ -13,7 +13,7 @@ async function relationalQuery(websites, start_at) {
return prisma.client.pageview.findMany({
where: {
website: {
id: {
websiteUuid: {
in: websites,
},
},
@ -25,9 +25,9 @@ async function relationalQuery(websites, start_at) {
}
async function clickhouseQuery(websites, start_at) {
const { getCommaSeparatedStringFormat } = clickhouse;
const { rawQuery, getCommaSeparatedStringFormat } = clickhouse;
return clickhouse.rawQuery(
return rawQuery(
`select
website_id,
session_id,