From fcf280cdf2e77d655c4435e744a1167a3e8721b9 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:26:07 -0400 Subject: [PATCH] Comment out caching code --- .github/workflows/src/app/airtable.js | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 3849c007..879884d5 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -10,15 +10,15 @@ const GITHUB_GRADUATION = "appnpTfSaHWAf964L" const GRADUATES_2020 = "Graduation 2020" const GRADUATES_2021 = "Graduation 2021" -let cachedJson -let cachedData = {} - -try { - cachedJson = fs.readFileSync('./data/airtable.json"', 'utf8') - cachedData = JSON.parse(json) -} catch(err) { - console.log("Failed to parse cache", err) -} +// let cachedJson +// let cachedData = {} + +// try { +// cachedJson = fs.readFileSync('./data/airtable.json"', 'utf8') +// cachedData = JSON.parse(json) +// } catch(err) { +// console.log("Failed to parse cache", err) +// } class ATable { @@ -27,22 +27,22 @@ class ATable { } userParticipated2020(githubLogin) { - const data = this.fetchFromCache(githubLogin, GRADUATES_2020) + // const data = this.fetchFromCache(githubLogin, GRADUATES_2020) - if(data) { - console.log("found cached 2020 data") - return new Promise(data) - } + // if(data) { + // console.log("found cached 2020 data") + // return new Promise(data) + // } return this.fetchGraduate(githubLogin, GRADUATES_2020) } fetch2021Graduate(githubLogin) { - const data = this.fetchFromCache(githubLogin, GRADUATES_2021) - if(data) { - console.log("found cached 2021 data") - return new Promise(data) - } + // const data = this.fetchFromCache(githubLogin, GRADUATES_2021) + // if(data) { + // console.log("found cached 2021 data") + // return new Promise(data) + // } return this.fetchGraduate(githubLogin, GRADUATES_2021) } -- knotmirror 0.0.1