Skip to content

Commit

Permalink
Debug formap file #2
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriibudko committed Dec 6, 2023
1 parent fc0d95c commit cbee45a
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 cbee45a

Please sign in to comment.