main
Zynh0722 2024-04-04 00:22:04 -07:00
parent dea7825cbc
commit 5f43470ed6
1 changed files with 6 additions and 3 deletions

View File

@ -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<TBAResponse> {
console.log("Unchanged... " + endpoint);
} else {
data = "";
data = await response.text();
}
return {
@ -98,7 +97,11 @@ async function getTBAEndpoint(endpoint: string): Promise<TBAResponse> {
};
}
const response = await getTBAEndpoint("/team/frc4043/events/simple");
const response = await getTBAEndpoint(
"/team/frc4043/event/2024pncmp/matches/simple",
);
console.log(response.data);
writeCache();