Skip to content

Commit 1bb5333

Browse files
committed
Remove unused background option from mongodb index creation.
1 parent f0a6bbf commit 1bb5333

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixed
66
- Use `result.modifiedCount` to enable newer mongodb driver.
7+
- Remove unused `background` option from mongodb index creation.
78

89
## 6.6.1 - 2025-02-28
910

lib/exchanges.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
4848
partialFilterExpression: {
4949
localWorkflowId: {$exists: true}
5050
},
51-
unique: true, background: false
51+
unique: true
5252
}
5353
}, {
5454
// backwards compatibility: cover exchange queries by
@@ -57,7 +57,7 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
5757
// deployments use `localExchangerId`
5858
collection: COLLECTION_NAME,
5959
fields: {localExchangerId: 1, 'exchange.id': 1},
60-
options: {unique: true, background: false}
60+
options: {unique: true}
6161
}, {
6262
// expire exchanges based on `expires` field
6363
collection: COLLECTION_NAME,
@@ -67,7 +67,6 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
6767
'meta.expires': {$exists: true}
6868
},
6969
unique: false,
70-
background: false,
7170
expireAfterSeconds: 0
7271
}
7372
}]);

0 commit comments

Comments
 (0)