From 5f43470ed6fd7ca23d220fc4acd7c75dd8dde5f0 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Thu, 4 Apr 2024 00:22:04 -0700 Subject: [PATCH] wooot --- index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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();