Skip to content

Commit 0403b1e

Browse files
committed
update query
1 parent bb3edae commit 0403b1e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

apps/insights/src/components/PriceFeed/Chart/chart.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.chart {
44
--chart-background-light: #{theme.pallette-color("white")};
5-
--chart-background-dark: #{theme.pallette-color("steel", 900)};
5+
--chart-background-dark: #{theme.pallette-color("steel", 950)};
66
--border-light: #{theme.pallette-color("stone", 100)};
77
--border-dark: #{theme.pallette-color("steel", 900)};
88
--muted-light: #{theme.pallette-color("stone", 700)};

apps/insights/src/services/clickhouse.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,9 @@ export const getHistoricalPrices = async ({
359359
symbol,
360360
from,
361361
to,
362+
publisher,
362363
};
363364

364-
const publisherClause = publisher
365-
? "AND publisher = {publisher: String}"
366-
: "";
367365
const clusterClause =
368366
cluster === "pythtest"
369367
? "cluster IN {clusters: Array(String)}"
@@ -392,13 +390,12 @@ export const getHistoricalPrices = async ({
392390
FROM prices
393391
PREWHERE
394392
${clusterClause}
393+
AND publisher = {publisher: String}
395394
AND symbol = {symbol: String}
396-
${publisherClause}
397395
AND version = 2
398396
WHERE
399397
publishTime >= toDateTime({from: UInt32})
400398
AND publishTime < toDateTime({to: UInt32})
401-
/* AND toDate(time) BETWEEN toDate(toDateTime({from: UInt32})) AND toDate(toDateTime({to: UInt32})) */
402399
GROUP BY timestamp
403400
ORDER BY timestamp ASC
404401
`,

0 commit comments

Comments
 (0)