Skip to content

Commit

Permalink
chore(simple-resource): use simple index spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Apr 20, 2024
1 parent 4298e21 commit 88a8d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple-resource-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module.exports = class {
/** @private */ this._transactionsEnabled = process.env.DSQ_MONGOD_ENABLE_TRANSACTIONS === 'true'

this._getCollection().then(collection => {
collection.createIndex([['id', 1], ['id', -1]], {
collection.createIndex({ id: 1 }, {
unique: true
})
}).catch((e) => {
Expand Down

0 comments on commit 88a8d0a

Please sign in to comment.