Skip to content

Commit

Permalink
Hotfix. Broken stats (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriibudko authored May 31, 2024
1 parent 9fba6f8 commit d089497
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/data-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ const dataLoader = async function loadDataFile() {
await fs.readdir(path.join(__dirname, ''), function (err, files) {
if (err) return console.error(`Unable to scan directory: ${err}`)

for (const file of files)
if (file.endsWith('.json')) retrieveStats(path.join(__dirname, file))
// TODO hot debug on prod
// for (const file of files)
// if (file.endsWith('.json')) retrieveStats(path.join(__dirname, file))

return true
})
Expand Down

0 comments on commit d089497

Please sign in to comment.