From b3b32208766691fc224f12920d987abf68c449b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Hatland?= Date: Fri, 20 Oct 2023 14:08:02 +0200 Subject: [PATCH] bugfix set default value for the graph --- packages/api/src/utils/the-graph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/utils/the-graph.ts b/packages/api/src/utils/the-graph.ts index 377ef7f..59818cc 100644 --- a/packages/api/src/utils/the-graph.ts +++ b/packages/api/src/utils/the-graph.ts @@ -9,7 +9,7 @@ export async function getCapTablesForAddresses(addresses: string[]) { // create a timer that fires one requst each second for 5 seconds, then stops const fetchData = async () => { - const res = await fetch(THE_GRAPH_URL, { + const res = await fetch(THE_GRAPH_URL || "http://localhost:8000/subgraphs/name/brok/captable", { method: "post", body: JSON.stringify({ query,