From 90bb390ac4d4706c2b7713d5c6d2ff0f35e0892b Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 8 Jan 2025 21:07:01 +0200 Subject: [PATCH] fix lint warn --- packages/cubejs-backend-native/js/ResultWrapper.ts | 2 +- packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts | 2 +- packages/cubejs-server/src/websocket-server.ts | 2 +- packages/cubejs-testing-shared/src/db-container-runners/ksql.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cubejs-backend-native/js/ResultWrapper.ts b/packages/cubejs-backend-native/js/ResultWrapper.ts index c68b335b2a2a4..c0bf150a35e08 100644 --- a/packages/cubejs-backend-native/js/ResultWrapper.ts +++ b/packages/cubejs-backend-native/js/ResultWrapper.ts @@ -12,7 +12,7 @@ export interface DataResult { } class BaseWrapper { - public readonly isWrapper: boolean = true; + public readonly isWrapper: boolean = true; } export class ResultWrapper extends BaseWrapper implements DataResult { diff --git a/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts b/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts index 6878647941092..111428e3c1225 100644 --- a/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts +++ b/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts @@ -173,7 +173,7 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface { }, }; - const maxPoolSize = config.maxPoolSize ?? getEnv("dbMaxPoolSize", { dataSource }) ?? 8; + const maxPoolSize = config.maxPoolSize ?? getEnv('dbMaxPoolSize', { dataSource }) ?? 8; this.client = this.createClient(maxPoolSize); } diff --git a/packages/cubejs-server/src/websocket-server.ts b/packages/cubejs-server/src/websocket-server.ts index 68820df1d7b19..00ee1c61e8dbd 100644 --- a/packages/cubejs-server/src/websocket-server.ts +++ b/packages/cubejs-server/src/websocket-server.ts @@ -43,7 +43,7 @@ export class WebSocketServer { // it again - it's too expensive, instead we serialize the rest of the message and then // inject query result json into message. const resMsg = new TextDecoder().decode(message.message); - message.message = "~XXXXX~"; + message.message = '~XXXXX~'; messageStr = JSON.stringify(message); messageStr = messageStr.replace('"~XXXXX~"', resMsg); } else { diff --git a/packages/cubejs-testing-shared/src/db-container-runners/ksql.ts b/packages/cubejs-testing-shared/src/db-container-runners/ksql.ts index 70f0c083d7a5a..e7bb53dc113fe 100644 --- a/packages/cubejs-testing-shared/src/db-container-runners/ksql.ts +++ b/packages/cubejs-testing-shared/src/db-container-runners/ksql.ts @@ -59,7 +59,7 @@ export class KsqlDBRunner extends DbRunnerAbstract { method: 'POST', headers: { Accept: 'application/json' }, body: JSON.stringify({ - ksql: "CREATE OR REPLACE STREAM REQUESTS (ID STRING, TIMESTAMP TIMESTAMP, TENANT_ID INTEGER, REQUEST_ID STRING) WITH (KAFKA_TOPIC = 'REQUESTS', KEY_FORMAT = 'JSON', PARTITIONS = 1, REPLICAS = 1, VALUE_FORMAT = 'JSON');", + ksql: 'CREATE OR REPLACE STREAM REQUESTS (ID STRING, TIMESTAMP TIMESTAMP, TENANT_ID INTEGER, REQUEST_ID STRING) WITH (KAFKA_TOPIC = \'REQUESTS\', KEY_FORMAT = \'JSON\', PARTITIONS = 1, REPLICAS = 1, VALUE_FORMAT = \'JSON\');', streamsProperties: {} }) });