From d089497858f5c6cd4d94a48046afb67b99fc7023 Mon Sep 17 00:00:00 2001 From: Valerii Budko Date: Fri, 31 May 2024 11:42:59 +0100 Subject: [PATCH] Hotfix. Broken stats (#344) --- data/data-loader.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/data-loader.js b/data/data-loader.js index 08081ad..763b620 100644 --- a/data/data-loader.js +++ b/data/data-loader.js @@ -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 })