mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 00:38:28 +03:00
Pass difficulty into db.charts[game]
This commit is contained in:
@@ -201,9 +201,12 @@ export async function ResolveMatchTypeToKTData(
|
||||
identifier = Number(data.identifier);
|
||||
}
|
||||
|
||||
const difficulty = AssertStrAsDifficulty(data.difficulty, game, context.playtype);
|
||||
|
||||
const chart = await db.charts[game].findOne({
|
||||
"data.inGameID": identifier,
|
||||
playtype: context.playtype,
|
||||
difficulty,
|
||||
});
|
||||
|
||||
if (!chart) {
|
||||
|
||||
Reference in New Issue
Block a user