move beatsaver map caching to redis

This commit is contained in:
Lee
2023-11-08 23:17:32 +00:00
parent af707a8c79
commit e6b169f3fc
9 changed files with 154 additions and 37 deletions

@ -176,7 +176,7 @@ async function fetchScoresWithBeatsaverData(
});
const mapJson = await mapResponse.json();
for (const score of scores) {
const mapData = mapJson[score.leaderboard.songHash];
const mapData = mapJson.maps[score.leaderboard.songHash];
if (mapData) {
scoresWithBeatsaverData[score.leaderboard.songHash] = {
score: score.score,