From 8a2058fdb3bd95e65d83583525337053eb69b7ba Mon Sep 17 00:00:00 2001 From: zkldi Date: Fri, 9 Sep 2022 21:50:22 +0100 Subject: [PATCH] feat: allow casthour scores from kailua iidx --- .../import-types/common/api-kai/iidx/converter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/lib/score-import/import-types/common/api-kai/iidx/converter.ts b/server/src/lib/score-import/import-types/common/api-kai/iidx/converter.ts index 3b1b26494..1f34c1ba6 100644 --- a/server/src/lib/score-import/import-types/common/api-kai/iidx/converter.ts +++ b/server/src/lib/score-import/import-types/common/api-kai/iidx/converter.ts @@ -212,7 +212,7 @@ export const ConvertAPIKaiIIDX: ConverterFunction = async ( const version = score.version_played.toString(); - if (!["20", "21", "22", "23", "24", "25", "26", "27", "28"].includes(version)) { + if (!["20", "21", "22", "23", "24", "25", "26", "27", "28", "29"].includes(version)) { throw new InvalidScoreFailure(`Unsupported version ${score.version_played}.`); } @@ -231,7 +231,7 @@ export const ConvertAPIKaiIIDX: ConverterFunction = async ( score.difficulty, // they send integers like 25, 27 - this will convert to our versions. - version as "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" + version as "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" ); if (!chart) {