fixes from latest staging

This commit is contained in:
Christopher Cooper
2022-12-27 10:07:37 +09:00
parent 481a234552
commit 2cca0e36c5
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ export default function ImportRoutes() {
<CGIntegrationPage cgType="prod" game="museca" />
</Route>
<Route exact path="/dashboard/import/wacca-mypage-scraper">
<Route exact path="/import/wacca-mypage-scraper">
<WACCAMyPageScraperPage />
</Route>
</>
@@ -1,5 +1,5 @@
import ScoreImportFatalError from "../../../framework/score-importing/score-import-error";
import { WACCA_STAGEUPS } from "lib/constants/classes";
import { WACCA_STAGEUPS } from "tachi-common";
import type { ClassHandler } from "../../../framework/user-game-stats/types";
import type { MyPagePlayerStage } from "./types";
@@ -1,7 +1,7 @@
import {
InternalFailure,
InvalidScoreFailure,
KTDataNotFoundFailure,
SongOrChartNotFoundFailure,
} from "lib/score-import/framework/common/converter-failures";
import { GenericGetGradeAndPercent } from "lib/score-import/framework/common/score-utils";
import { FindChartWithPTDF } from "utils/queries/charts";
@@ -30,7 +30,7 @@ const ConvertMyPageScraperRecordsCSV: ConverterFunction<
const song = await FindSongOnTitle("wacca", data.songTitle);
if (song === null) {
throw new KTDataNotFoundFailure(
throw new SongOrChartNotFoundFailure(
`Could not find song for ${data.songTitle}.`,
importType,
data,
@@ -49,7 +49,7 @@ const ConvertMyPageScraperRecordsCSV: ConverterFunction<
const chart = await FindChartWithPTDF("wacca", song.id, "Single", difficulty);
if (chart === null) {
throw new KTDataNotFoundFailure(
throw new SongOrChartNotFoundFailure(
`Could not find chart for ${humanisedChartTitle}.`,
importType,
data,
@@ -1,7 +1,7 @@
import { CreateMyPageScraperClassHandler } from "./class-handler";
import ScoreImportFatalError from "../../../framework/score-importing/score-import-error";
import { parse, CsvError } from "csv-parse/sync";
import p from "prudence";
import { p } from "prudence";
import type { ParserFunctionReturns } from "../../common/types";
import type { MyPageRecordsRawCsvRecord, MyPageRecordsParsedPB } from "./types";
import type { KtLogger } from "lib/logger/logger";