mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 01:08:29 +03:00
checkpoint: 27
This commit is contained in:
@@ -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 };
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user