This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-28 21:06:45 +01:00
parent ab8bce7752
commit defc78d0f8

View File

@@ -43,8 +43,8 @@ export const originalCh = createClient({
...CLICKHOUSE_OPTIONS,
});
const cleanQuery = (query: string) =>
query.replace(/\n/g, '').replace(/\s+/g, ' ').trim();
const cleanQuery = (query?: string) =>
query ? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim() : undefined;
export const ch = new Proxy(originalCh, {
get(target, property, receiver) {