Skip to content

Commit

Permalink
fix(updater): πŸ› prevent bsom data from database
Browse files Browse the repository at this point in the history
βœ… Closes: #529
  • Loading branch information
andrew-codes committed Sep 19, 2024
1 parent a199d4d commit e8b45db
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions apps/game-db-updater/src/handlers/persistGameEntities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e8b45db

Please sign in to comment.