Skip to content

Commit 093ba2e

Browse files
committed
Remove unused background option from mongodb index creation.
1 parent d626927 commit 093ba2e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
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
## 1.1.0 - 2025-02-27
910

lib/mappings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
2222
'mapping.credentialId': 1,
2323
'mapping.statusPurpose': 1
2424
},
25-
options: {unique: true, background: false}
25+
options: {unique: true}
2626
}]);
2727
});
2828

lib/slcs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
3333
// collection for SLCs, indexed by status list ID
3434
collection: COLLECTION_NAME,
3535
fields: {statusListId: 1},
36-
options: {unique: true, background: false}
36+
options: {unique: true}
3737
}]);
3838
});
3939

0 commit comments

Comments
 (0)