wowtoken.app

git clone https://git.emily.sh/wowtoken-app/wowtoken.app.git
Log | Files | Refs | README | LICENSE

commit e6c1f2237f05c7ff81e1684b73c3d1c9716b8d48
parent f40f4827d022cd130aba56cdee897c5f43838ccc
Author: Emily Doherty <git@emily.sh>
Date:   Sun, 27 Nov 2022 16:47:12 -0800

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

Diffstat:
Msrc/index.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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++) {