mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 16:58:25 +03:00
style: replace Playtypes[Game] with Playtype
This commit is contained in:
@@ -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
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user