From e8b45db90163862b266f01b4e4f0a353207f1de2 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 18 Sep 2024 20:15:26 -0400 Subject: [PATCH] =?UTF-8?q?fix(updater):=20=F0=9F=90=9B=20prevent=20bsom?= =?UTF-8?q?=20data=20from=20database?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: #529 --- .../src/handlers/persistGameEntities.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apps/game-db-updater/src/handlers/persistGameEntities.ts b/apps/game-db-updater/src/handlers/persistGameEntities.ts index 6df05b8ad..97e9ca2b4 100755 --- a/apps/game-db-updater/src/handlers/persistGameEntities.ts +++ b/apps/game-db-updater/src/handlers/persistGameEntities.ts @@ -44,18 +44,7 @@ const handler: IHandlePublishedTopics = async (topic, payload) => { .collection(collectionName) .updateOne({ id: entityId }, { $set: entity }, { upsert: true }) - await client - .db('games') - .createIndex(collectionName, { id: 1 }, { unique: true }) - await client.db('games').createIndex(collectionName, { name: 1 }) - if (collectionName === 'game') { - await client - .db('games') - .createIndex('consolidated-games', { id: 1 }, { unique: true }) - await client - .db('games') - .createIndex('consolidated-games', { name: 1 }, { unique: true }) let consolidatedGame = await client .db('games') .collection('consolidated-games')