Skip to content

Commit

Permalink
Update loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriibudko authored Nov 21, 2023
1 parent 0a8eb99 commit 22a3c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -64,7 +64,7 @@ class Loader {
}

cachedData = data
//}
}
return cachedData
}
}
Expand Down

0 comments on commit 22a3c97

Please sign in to comment.