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 7546b02 commit 0a8eb99
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) {

Check failure on line 52 in lib/loader.js

View workflow job for this annotation

GitHub Actions / Code quality

Expected exception block, space or tab after '//' in comment
const data = await this.fetchData(this.baseUrl)

Check failure on line 53 in lib/loader.js

View workflow job for this annotation

GitHub Actions / Code quality

Delete `··`
try {

Check failure on line 54 in lib/loader.js

View workflow job for this annotation

GitHub Actions / Code quality

Delete `··`
fs.writeFileSync(

Check failure on line 55 in lib/loader.js

View workflow job for this annotation

GitHub Actions / Code quality

Delete `··`
Expand All @@ -64,7 +64,7 @@ class Loader {
}

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

0 comments on commit 0a8eb99

Please sign in to comment.