mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 14:28:09 +03:00
HOTFIX: fix bug where uscChartHash always picked controller charts.
This commit is contained in:
@@ -231,7 +231,10 @@ export async function ResolveMatchTypeToKTData(
|
||||
throw new InvalidScoreFailure(`uscChartMash matchType can only be used on USC.`);
|
||||
}
|
||||
|
||||
const chart = await db.charts.usc.findOne({ "data.hashSHA1": data.identifier });
|
||||
const chart = await db.charts.usc.findOne({
|
||||
"data.hashSHA1": data.identifier,
|
||||
playtype: context.playtype,
|
||||
});
|
||||
|
||||
if (!chart) {
|
||||
throw new KTDataNotFoundFailure(
|
||||
|
||||
Reference in New Issue
Block a user