Everytime I run this import cleaner it does different things I swear.

This commit is contained in:
zkldi
2021-11-16 16:31:11 +00:00
parent 57f6a3d491
commit bbbeccf10f
49 changed files with 215 additions and 239 deletions
+3 -3
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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 -1
View File
@@ -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;
+4 -11
View File
@@ -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);