Skip to content

Commit

Permalink
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
Browse files Browse the repository at this point in the history
…evelopment
  • Loading branch information
karthikscale3 committed May 9, 2024
2 parents 9cbb929 + e7c63ff commit bee3df8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/clients/scale3_clickhouse/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export class ClickhouseBaseClient implements IBaseChClient {

async update<T>(query: string): Promise<T> {
try {
return await (
return (await (
await this.client.query({ query: query, format: "JSONEachRow" })
).json();
).json()) as T;
} catch (err) {
throw new Error(
`An error occurred while trying to update the resource ${err}`
Expand Down Expand Up @@ -95,12 +95,12 @@ export class ClickhouseBaseClient implements IBaseChClient {

async find<T>(filter: SelectStatement): Promise<T> {
try {
return await (
return (await (
await this.client.query({
query: filter.toString(),
format: "JSONEachRow",
})
).json();
).json()) as T;
} catch (err) {
throw new Error(
`An error occurred while trying to find the resource ${err}`
Expand Down

0 comments on commit bee3df8

Please sign in to comment.