diff --git a/lib/loader.js b/lib/loader.js index 55edce2a..8cd6dbab 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -49,7 +49,7 @@ class Loader { this.log('data cache not initialized') } // Fetch data once a day - //if (!cachedData || date.getDate() !== cachedData.timestamp) { + if (!cachedData || date.getDate() !== cachedData.timestamp) { const data = await this.fetchData(this.baseUrl) try { fs.writeFileSync( @@ -64,7 +64,7 @@ class Loader { } cachedData = data - //} + } return cachedData } }