We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b691c commit 1b26bd0Copy full SHA for 1b26bd0
packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts
@@ -142,7 +142,7 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
142
const dataSource = config.dataSource ?? assertDataSource('default');
143
const host = config.host ?? getEnv('dbHost', { dataSource });
144
const port = config.port ?? getEnv('dbPort', { dataSource }) ?? 8123;
145
- const protocol = config.protocol ?? getEnv('dbSsl', { dataSource }) ? 'https:' : 'http:';
+ const protocol = config.protocol ?? (getEnv('dbSsl', { dataSource }) ? 'https:' : 'http:');
146
const url = `${protocol}//${host}:${port}`;
147
148
const username = config.username ?? getEnv('dbUser', { dataSource });
0 commit comments