From cdffe0278d26324c19aa8d2a2d4935b7aa885ef7 Mon Sep 17 00:00:00 2001 From: kitt Date: Thu, 2 Mar 2023 11:39:10 -0500 Subject: [PATCH] remove old check --- src/exporters/mongodb.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/exporters/mongodb.ts b/src/exporters/mongodb.ts index 876bd24..2a38da8 100644 --- a/src/exporters/mongodb.ts +++ b/src/exporters/mongodb.ts @@ -31,18 +31,13 @@ export class MongoDBExporter implements GameExporter { const collection = type === "CoopInfo" ? this.jobsCollection : this.battlesCollection; for (const id of list) { - // countOldStorage can be removed later eventually when all old documents - // are gone from SplatNet 3 - const countOldStorage = await collection.countDocuments({ - "splatNetData.id": id, - }); const uniqueId = MongoDBExporter.getGameId(id); const countNewStorage = await collection.countDocuments({ gameId: uniqueId, }); - if (countOldStorage === 0 && countNewStorage === 0) { + if (countNewStorage === 0) { out.push(id); } }