From 349784029c49597d90efd0cd155220dcaacae242 Mon Sep 17 00:00:00 2001 From: Pelotfr Date: Thu, 23 Nov 2023 16:50:35 +0100 Subject: [PATCH] Changed table to look for distinct chains --- src/clickhouse/stores.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clickhouse/stores.ts b/src/clickhouse/stores.ts index 683e56e..f868f5a 100644 --- a/src/clickhouse/stores.ts +++ b/src/clickhouse/stores.ts @@ -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>()) .then((chains) => chains.map(({ chain }) => chain)) .catch(() => []);