Skip to content

Commit

Permalink
mongodb: Fix incorrect keys on users collections
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jan 4, 2019
1 parent 0320e08 commit 5e88977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bot/databases/mongodb.js
Expand Up @@ -73,9 +73,9 @@ class IMongoDB extends Interface {
{ partialFilterExpression: { id: { $exists: true } }, unique: true }
)
await db.collection('users.online').createIndex('username')
await db.collection('users.points').createIndex('username')
await db.collection('users.messages').createIndex('username')
await db.collection('users.watched').createIndex('username')
await db.collection('users.points').createIndex('id')
await db.collection('users.messages').createIndex('id')
await db.collection('users.watched').createIndex('id')
await db.collection('cache').createIndex('key', { unique: true })
await db.collection('customTranslations').createIndex('key')
await db.collection('stats').createIndex('whenOnline')
Expand Down

0 comments on commit 5e88977

Please sign in to comment.