diff --git a/server/src/scripts/state-sync/dedupe-score-ids.ts b/server/src/scripts/state-sync/dedupe-score-ids.ts index e5ef0eb74..8289b91e8 100644 --- a/server/src/scripts/state-sync/dedupe-score-ids.ts +++ b/server/src/scripts/state-sync/dedupe-score-ids.ts @@ -26,6 +26,7 @@ async function DedupeScoreIDs() { for (const dup of dups) { dup.dups.shift(); + // eslint-disable-next-line no-await-in-loop await db.scores.remove({ _id: { $in: dup.dups } }); } diff --git a/server/src/scripts/sync-database.ts b/server/src/scripts/sync-database.ts index 61453742b..3bc93d171 100644 --- a/server/src/scripts/sync-database.ts +++ b/server/src/scripts/sync-database.ts @@ -1,7 +1,7 @@ /* eslint-disable no-await-in-loop */ // This script syncs this tachi instances database up with the tachi-database-seeds. -import db, { monkDB } from "external/mongo/db"; +import { monkDB } from "external/mongo/db"; import fjsh from "fast-json-stable-hash"; import { PullDatabaseSeeds } from "lib/database-seeds/repo"; import CreateLogCtx, { KtLogger } from "lib/logger/logger"; @@ -24,7 +24,11 @@ import { InitaliseFolderChartLookup } from "utils/folder"; interface SyncInstructions { pattern: RegExp; handler: ( + // These 'any's are necessary due to what I think might be a bug in typescript? + // see: https://github.com/microsoft/TypeScript/issues/48461 + // eslint-disable-next-line @typescript-eslint/no-explicit-any c: any[], + // eslint-disable-next-line @typescript-eslint/no-explicit-any collection: ICollection, logger: KtLogger, collectionName: string diff --git a/server/src/utils/queries/summary.ts b/server/src/utils/queries/summary.ts index 8963424b3..689695ddb 100644 --- a/server/src/utils/queries/summary.ts +++ b/server/src/utils/queries/summary.ts @@ -1,9 +1,6 @@ import db from "external/mongo/db"; import { integer } from "tachi-common"; -import { - GetGradeLampDistributionForFolder, - GetGradeLampDistributionForFolders, -} from "utils/folder"; +import { GetGradeLampDistributionForFolders } from "utils/folder"; import { GetTimeXHoursAgo } from "utils/misc"; // Various utils related to the player summary endpoint.