attempt fix: trpc routes not found

This commit is contained in:
2024-09-29 20:19:51 -04:00
parent add21288be
commit 2597c0f6ac
4 changed files with 39 additions and 25 deletions
+4 -4
View File
@@ -9,18 +9,18 @@ const { CLICKHOUSE_USER, CLICKHOUSE_PASS } = env.required;
const CLICKHOUSE_HOST = env.get("CLICKHOUSE_HOST", "http://localhost:8123");
export const clickhouse = createClickhouseClient({
host: CLICKHOUSE_HOST,
url: CLICKHOUSE_HOST,
username: CLICKHOUSE_USER,
password: CLICKHOUSE_PASS,
keep_alive: {
enabled: true,
socket_ttl: 2500,
// socket_ttl: 2500,
},
});
export async function query<T>(
queryString: string,
format: DataFormat = "JSONEachRow",
format: DataFormat = "JSONEachRow"
): Promise<Array<T>> {
return await retry(
async () => {
@@ -33,6 +33,6 @@ export async function query<T>(
});
return await result.json();
},
{ maxRetries: 5 },
{ maxRetries: 5 }
);
}