main
Rosalina 2023-03-02 21:01:50 -05:00
parent cdffe0278d
commit 499a9f8650
No known key found for this signature in database
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import { MongoDB } from "../../deps.ts";
import { AGENT_VERSION, NSOAPP_VERSION, S3SI_VERSION } from "../constant.ts"; import { AGENT_VERSION, NSOAPP_VERSION, S3SI_VERSION } from "../constant.ts";
import { CoopHistoryDetail, ExportResult, Game, GameExporter, Summary, VsHistoryDetail } from "../types.ts"; import { CoopHistoryDetail, ExportResult, Game, GameExporter, Summary, VsHistoryDetail } from "../types.ts";
import { parseHistoryDetailId } from "../utils.ts"; import { parseHistoryDetailId } from "../utils.ts";
import { FileExporterTypeCommon } from "./file.ts";
export class MongoDBExporter implements GameExporter { export class MongoDBExporter implements GameExporter {
name = "mongodb"; name = "mongodb";
@ -31,7 +30,6 @@ export class MongoDBExporter implements GameExporter {
const collection = type === "CoopInfo" ? this.jobsCollection : this.battlesCollection; const collection = type === "CoopInfo" ? this.jobsCollection : this.battlesCollection;
for (const id of list) { for (const id of list) {
const uniqueId = MongoDBExporter.getGameId(id); const uniqueId = MongoDBExporter.getGameId(id);
const countNewStorage = await collection.countDocuments({ const countNewStorage = await collection.countDocuments({
gameId: uniqueId, gameId: uniqueId,