From e6c1f2237f05c7ff81e1684b73c3d1c9716b8d48 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Sun, 27 Nov 2022 16:47:12 -0800 Subject: [PATCH] Swap back to cached history URL The uncached 'next' endpoint made it into pushed code accidentally. I should really come up with a way to prevent that from happening - though /next/[path] is less bad then what I was doing before (referencing Lambda URLs directly --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 98a6abd..e6beebb 100644 --- a/src/index.js +++ b/src/index.js @@ -116,7 +116,7 @@ export function updateTimePreference(newTime) { } async function pullChartData() { - let resp = await fetch("https://data.wowtoken.app/next/token/history/" + current_region_selection + "/" + current_time_selection + ".json"); + let resp = await fetch("https://data.wowtoken.app/token/history/" + current_region_selection + "/" + current_time_selection + ".json"); let chart_data = await resp.json(); let new_chart_js_data = [] for (let i = 0; i < chart_data.length; i++) {