mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 06:18:03 +03:00
use/remove unused vars
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
MilestoneDocument,
|
||||
UserMilestoneDocument,
|
||||
integer,
|
||||
GoalImportInfo,
|
||||
} from "kamaitachi-common";
|
||||
import { MilestoneDocument, integer, GoalImportInfo } from "kamaitachi-common";
|
||||
|
||||
/**
|
||||
* Processes and updates a user's milestones from their Goal Import Info (i.e. what is returned
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AnyChartDocument, ChartDocument, ESDCore, integer } from "kamaitachi-common";
|
||||
import { AnyChartDocument, ESDCore, integer } from "kamaitachi-common";
|
||||
import { Logger } from "winston";
|
||||
import db from "../../../db/db";
|
||||
import { DryScore } from "../../../types";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import t from "tap";
|
||||
import { CreateImportLoggerAndID } from "./import-logger";
|
||||
import { PublicUserDocument } from "kamaitachi-common";
|
||||
import { Logger } from "winston";
|
||||
|
||||
t.test("#CreateImportLoggerAndID", (t) => {
|
||||
let { importID, logger } = CreateImportLoggerAndID(
|
||||
|
||||
@@ -86,6 +86,7 @@ export async function CalculateUGSClasses(
|
||||
}
|
||||
|
||||
if (ImportTypeClassResolveFn) {
|
||||
logger.debug(`Applying ClassResolveFn for ${game} ${playtype}.`);
|
||||
classes = deepmerge(
|
||||
classes,
|
||||
await ImportTypeClassResolveFn(game, playtype, userID, customRatings)
|
||||
|
||||
@@ -40,6 +40,10 @@ export async function CalculateRatings(
|
||||
),
|
||||
]);
|
||||
|
||||
logger.debug(
|
||||
`Found ${bestRating.length} best rating scores and ${bestLampRating.length} bestLampRating scores.`
|
||||
);
|
||||
|
||||
let rating = bestRating.reduce((a, r) => a + r.calculatedData.rating, 0) / SCORE_COUNT;
|
||||
let lampRating = bestLampRating.reduce((a, r) => a + r.calculatedData.rating, 0) / SCORE_COUNT;
|
||||
|
||||
|
||||
@@ -369,4 +369,10 @@ t.test("#EamScoreConverterWrapper", async (t) => {
|
||||
t.end();
|
||||
});
|
||||
|
||||
t.todo("#ConverterFn", async (t) => {
|
||||
t.beforeEach(ResetDBState);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
t.teardown(CloseMongoConnection);
|
||||
|
||||
@@ -7,7 +7,6 @@ import {
|
||||
UserGoalDocument,
|
||||
FolderDocument,
|
||||
MilestoneDocument,
|
||||
UserMilestoneDocument,
|
||||
} from "kamaitachi-common";
|
||||
import path from "path";
|
||||
import { DryScore } from "../types";
|
||||
|
||||
Reference in New Issue
Block a user