wooot
This commit is contained in:
parent
dea7825cbc
commit
5f43470ed6
1 changed files with 6 additions and 3 deletions
9
index.ts
9
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<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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue