checkpoint: 27

This commit is contained in:
zkldi
2023-01-19 16:39:39 +00:00
parent 8c26020973
commit 67c5b16976
28 changed files with 163 additions and 98 deletions
@@ -40,7 +40,7 @@ export async function RecalcAllScores(filter = {}) {
modifiedUsers.add(`${c.game}-${c.playtype}-${c.userID}`);
modifiedUserIDs.add(c.userID);
const calculatedData = CreateScoreCalcData(c, chart);
const calculatedData = CreateScoreCalcData(c.game, c.scoreData, chart);
return { scoreID: c.scoreID, calculatedData };
},
+1 -5
View File
@@ -43,11 +43,7 @@ export function FilterChartsAndSongs(
}
export function GetScoreIDsFromComposed(pb: PBScoreDocument) {
const arr = [pb.composedFrom.lampPB, pb.composedFrom.scorePB];
if (pb.composedFrom.other) {
arr.push(...pb.composedFrom.other.map((e) => e.scoreID));
}
const arr = pb.composedFrom.map((e) => e.scoreID);
return DedupeArr(arr);
}