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
-1
View File
@@ -1,5 +1,4 @@
import t from "tap";
import ResetDBState from "test-utils/resets";
import db from "./db";
+4 -4
View File
@@ -1,11 +1,11 @@
/* eslint-disable no-await-in-loop */
import monk, { IMonkManager } from "monk";
import { IndexOptions } from "mongodb";
import { ONE_DAY } from "lib/constants/time";
import CreateLogCtx from "lib/logger/logger";
import { TachiConfig } from "lib/setup/config";
import { ONE_DAY } from "lib/constants/time";
import db, { Databases, monkDB } from "./db";
import { IndexOptions } from "mongodb";
import monk, { IMonkManager } from "monk";
import { Random20Hex } from "utils/misc";
import db, { Databases, monkDB } from "./db";
const logger = CreateLogCtx(__filename);
+6 -6
View File
@@ -1,18 +1,18 @@
import { TachiConfig } from "lib/setup/config";
import p, { PrudenceSchema } from "prudence";
import { AllPermissions } from "server/middleware/auth";
import {
Game,
GamePTConfig,
GetGameConfig,
GetGamePTConfig,
Playtypes,
UserAuthLevels,
GamePTConfig,
GetGameConfig,
} from "tachi-common";
import { allIDStrings, allImportTypes } from "tachi-common/js/config/static-config";
import p, { PrudenceSchema } from "prudence";
import { Databases } from "./db";
import { AllPermissions } from "server/middleware/auth";
import { TachiConfig } from "lib/setup/config";
import { IsValidGame, IsValidPlaytype } from "utils/misc";
import { optNull } from "utils/prudence";
import { Databases } from "./db";
// The idea of this file is to export a function for every database
// that will validate that collection.
+2 -2
View File
@@ -1,6 +1,6 @@
import redis from "redis";
import CreateLogCtx from "lib/logger/logger";
import { ServerConfig, TachiConfig } from "lib/setup/config";
import { TachiConfig } from "lib/setup/config";
import redis from "redis";
/**
* This code has been stubbed out! It doesn't really have a use at the moment.