HOTFIX: fix bug where uscChartHash always picked controller charts.

This commit is contained in:
zkldi
2021-12-07 13:28:08 +00:00
parent 2f69c466f8
commit 16182ffc5a
@@ -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(