Skip to content

Commit f29b031

Browse files
committed
fix: linting
1 parent df3a00e commit f29b031

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: packages/common-utils/src/clickhouse.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,8 @@ export class ClickhouseClient {
472472
abort_signal?: AbortSignal;
473473
clickhouse_settings?: Record<string, any>;
474474
};
475-
}) {
475+
}): Promise<ResponseJSON<Record<string, string | number>>> {
476476
config = setChartSelectsAlias(config);
477-
// TODO: move multi-series logics to common-utils so alerting can use it
478477
const queries: ChSql[] = await Promise.all(
479478
splitChartConfigs(config).map(c => renderChartConfig(c, metadata)),
480479
);
@@ -545,7 +544,7 @@ export class ClickhouseClient {
545544
const isRatio =
546545
config.seriesReturnType === 'ratio' && resultSets.length === 2;
547546

548-
const _resultSet = {
547+
const _resultSet: ResponseJSON<any> = {
549548
meta: Array.from(metaSet.values()),
550549
data: Array.from(tsBucketMap.values()),
551550
};

Diff for: packages/common-utils/src/renderChartConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ async function renderSelectList(
402402
);
403403

404404
return isRatio
405-
? chSql`divide(${selectsSQL[0]}, ${selectsSQL[1]})`
405+
? [chSql`divide(${selectsSQL[0]}, ${selectsSQL[1]})`]
406406
: selectsSQL;
407407
}
408408

0 commit comments

Comments
 (0)