style: replace Playtypes[Game] with Playtype

This commit is contained in:
zkldi
2022-04-23 05:55:37 +01:00
parent a5fd3bcb9a
commit 5757348dd6
34 changed files with 131 additions and 109 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import db from "external/mongo/db";
import { CreateGameSettings } from "lib/game-settings/create-game-settings";
import CreateLogCtx from "lib/logger/logger";
import { EmitWebhookEvent } from "lib/webhooks/webhooks";
import { Game, IDStrings, integer, Playtypes, UserGameStats } from "tachi-common";
import { Game, IDStrings, integer, Playtype, UserGameStats } from "tachi-common";
import { GameClassSets } from "tachi-common/js/game-classes";
const logger = CreateLogCtx(__filename);
@@ -35,7 +35,7 @@ export function ReturnClassIfGreater(
export async function UpdateClassIfGreater(
userID: integer,
game: Game,
playtype: Playtypes[Game],
playtype: Playtype,
classSet: GameClassSets[IDStrings],
classVal: integer
) {