Skip to content

Commit

Permalink
Changed table to look for distinct chains
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelotfr committed Nov 23, 2023
1 parent ea76cba commit 3497840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clickhouse/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ClickhouseStore {
public get chains() {
if (!this.ChainsPromise) {
this.ChainsPromise = client
.query({ query: "SELECT DISTINCT chain FROM Sales", format: "JSONEachRow" })
.query({ query: "SELECT DISTINCT chain FROM module_hashes", format: "JSONEachRow" })
.then((response) => response.json<Array<{ chain: string }>>())
.then((chains) => chains.map(({ chain }) => chain))
.catch(() => []);
Expand Down

0 comments on commit 3497840

Please sign in to comment.