Updated pixel/link endpoints. Added name to rawQuery.

This commit is contained in:
Mike Cao committed 2025-09-30 16:11:21 -07:00
1 parent b9fbbc6453
commit 8a977b0164
18 files changed
+913 -810

No files matched your search

+4
View File
@@ -3,6 +3,8 @@ import clickhouse from '@/lib/clickhouse';
import { runQuery, CLICKHOUSE, PRISMA } from '@/lib/db';
import { QueryFilters } from '@/lib/types';
const FUNCTION_NAME = 'getValues';
export async function getValues(
...args: [websiteId: string, column: string, filters: QueryFilters]
) {
@@ -64,6 +66,7 @@ async function relationalQuery(websiteId: string, column: string, filters: Query
search: `%${search}%`,
...params,
},
FUNCTION_NAME,
);
}
@@ -120,5 +123,6 @@ async function clickhouseQuery(websiteId: string, column: string, filters: Query
search,
...params,
},
FUNCTION_NAME,
);
}