fix
This commit is contained in:
@@ -43,8 +43,8 @@ export const originalCh = createClient({
|
|||||||
...CLICKHOUSE_OPTIONS,
|
...CLICKHOUSE_OPTIONS,
|
||||||
});
|
});
|
||||||
|
|
||||||
const cleanQuery = (query: string) =>
|
const cleanQuery = (query?: string) =>
|
||||||
query.replace(/\n/g, '').replace(/\s+/g, ' ').trim();
|
query ? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim() : undefined;
|
||||||
|
|
||||||
export const ch = new Proxy(originalCh, {
|
export const ch = new Proxy(originalCh, {
|
||||||
get(target, property, receiver) {
|
get(target, property, receiver) {
|
||||||
|
|||||||
Reference in New Issue
Block a user