mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 04:18:16 +03:00
Everytime I run this import cleaner it does different things I swear.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { Game, integer, IDStrings, Playtypes, UserGameStats } from "tachi-common";
|
||||
import db from "external/mongo/db";
|
||||
import CreateLogCtx from "lib/logger/logger";
|
||||
import { GameClassSets } from "tachi-common/js/game-classes";
|
||||
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 { GameClassSets } from "tachi-common/js/game-classes";
|
||||
|
||||
const logger = CreateLogCtx(__filename);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import db from "external/mongo/db";
|
||||
import CreateLogCtx from "lib/logger/logger";
|
||||
import { Game, integer, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
const logger = CreateLogCtx(__filename);
|
||||
import { integer, Game, ScoreDocument, PBScoreDocument } from "tachi-common";
|
||||
|
||||
export async function GetNextCounterValue(counterName: string): Promise<integer> {
|
||||
const sequenceDoc = await db.counters.findOneAndUpdate(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MilestoneDocument, integer } from "tachi-common";
|
||||
import { integer, MilestoneDocument } from "tachi-common";
|
||||
|
||||
/**
|
||||
* Retrieves the goalID documents in a single array from the
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import t from "tap";
|
||||
import db from "external/mongo/db";
|
||||
|
||||
import t from "tap";
|
||||
import ResetDBState from "test-utils/resets";
|
||||
import { GetScoresFromSession } from "./session";
|
||||
|
||||
|
||||
t.test("#GetScoresFromSession", async (t) => {
|
||||
t.beforeEach(ResetDBState);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SessionDocument, ScoreDocument, SessionScoreInfo } from "tachi-common";
|
||||
import { Condition } from "mongodb";
|
||||
import db from "external/mongo/db";
|
||||
import { Condition } from "mongodb";
|
||||
import { ScoreDocument, SessionDocument, SessionScoreInfo } from "tachi-common";
|
||||
|
||||
/**
|
||||
* Returns all the score documents inside a session.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Game, Playtypes, GetGamePTConfig, GamePTConfig } from "tachi-common";
|
||||
import { Game, GamePTConfig, GetGamePTConfig, Playtypes } from "tachi-common";
|
||||
import { IsString } from "./misc";
|
||||
|
||||
const isIntegerRegex = /^-?\d+$/u;
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
import {
|
||||
integer,
|
||||
PublicUserDocument,
|
||||
UserGameStats,
|
||||
GetGamePTConfig,
|
||||
Game,
|
||||
Playtypes,
|
||||
UGSRatingsLookup,
|
||||
IDStrings,
|
||||
} from "tachi-common";
|
||||
import { FindOneResult } from "monk";
|
||||
import db from "external/mongo/db";
|
||||
import CreateLogCtx from "lib/logger/logger";
|
||||
import { FindOneResult } from "monk";
|
||||
import {
|
||||
Game, GetGamePTConfig, IDStrings, integer, Playtypes, PublicUserDocument, UGSRatingsLookup, UserGameStats
|
||||
} from "tachi-common";
|
||||
|
||||
const logger = CreateLogCtx(__filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user