Changed endpoints and db queries, chart now shows suggested mins and maxes
This commit is contained in:
@@ -22,8 +22,9 @@
|
||||
urlEndpoint += "since/" + pathname.slice(pathname.lastIndexOf("/") + 1);
|
||||
}
|
||||
const data = await fetch(urlEndpoint);
|
||||
console.log(pathname, data.json());
|
||||
return transformData(await data.json());
|
||||
const newData = transformData(await data.json());
|
||||
console.log(pathname, newData);
|
||||
return newData;
|
||||
}
|
||||
|
||||
async function initChart() {
|
||||
|
||||
Reference in New Issue
Block a user