diff --git a/index.ts b/index.ts index ed41fb0..951f778 100644 --- a/index.ts +++ b/index.ts @@ -30,7 +30,6 @@ async function initializeCache() { data = JSON.parse(await cacheFile.text()); } - console.log(Object.keys(data)); return data; } @@ -89,7 +88,7 @@ async function getTBAEndpoint(endpoint: string): Promise { console.log("Unchanged... " + endpoint); } else { - data = ""; + data = await response.text(); } return { @@ -98,7 +97,11 @@ async function getTBAEndpoint(endpoint: string): Promise { }; } -const response = await getTBAEndpoint("/team/frc4043/events/simple"); +const response = await getTBAEndpoint( + "/team/frc4043/event/2024pncmp/matches/simple", +); + +console.log(response.data); writeCache();