From 2be6af14ca5b7b4264aafcaa000ecdb8f571c7be Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Tue, 4 Aug 2026 01:00:54 +0530 Subject: [PATCH] fix: resolve 4 bugs in leetcode-ranking --- frontend/js/leaderboard/compare.js | 2 ++ scripts/analyze-inactivity.js | 2 ++ scripts/sync-leaderboard.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/frontend/js/leaderboard/compare.js b/frontend/js/leaderboard/compare.js index cad75c17..3c25359a 100644 --- a/frontend/js/leaderboard/compare.js +++ b/frontend/js/leaderboard/compare.js @@ -847,3 +847,5 @@ function renderProgressHistoryChart() { }, }); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/scripts/analyze-inactivity.js b/scripts/analyze-inactivity.js index 8c327766..891e1fdd 100644 --- a/scripts/analyze-inactivity.js +++ b/scripts/analyze-inactivity.js @@ -118,3 +118,5 @@ async function fetchData(url) { process.exit(1); } })(); + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/scripts/sync-leaderboard.js b/scripts/sync-leaderboard.js index 9579ac1e..eb24a19a 100644 --- a/scripts/sync-leaderboard.js +++ b/scripts/sync-leaderboard.js @@ -660,3 +660,5 @@ async function processTimeframe(sourceData, DATA_DIR, periodName, daysAgo) { console.error(`Failed to write sync file: `, err.message); } })(); + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file